mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
4.9.0
Added: Chat Room Actions can now be filtered by a room being in emote-only mode, subs-only mode, or slow mode. Added: Option to hide Latest Videos in the Following directory. Added: Option to display the current stream delay in a warning color if it exceeds a certain value. Fixed: Emote previews not appearing correctly in tool-tips. Fixed: Option to hide Rerun bar not functioning correctly. Fixed: Favorite emotes from add-ons and other extensions not being sorted correctly for tab-completion.
This commit is contained in:
parent
f32b2efd1a
commit
c39f6799d3
10 changed files with 231 additions and 30 deletions
|
@ -798,6 +798,41 @@ export default class Emotes extends Module {
|
|||
return tes.get(emote_id);
|
||||
|
||||
tes.set(emote_id, null);
|
||||
|
||||
/*const apollo = this.resolve('site.apollo');
|
||||
if ( apollo?.client ) {
|
||||
timeout(apollo.client.query({
|
||||
query: GET_EMOTE,
|
||||
variables: {
|
||||
id: `${emote_id}`
|
||||
}
|
||||
}), 1000).then(result => {
|
||||
const emote = result?.data?.emote;
|
||||
|
||||
if ( ! emote ) {
|
||||
tes.delete(emote_id);
|
||||
return;
|
||||
}
|
||||
|
||||
const set_id = parseInt(emote.setID, 10),
|
||||
channel = emote?.subscriptionProduct?.owner;
|
||||
|
||||
this.__twitch_set_to_channel.set(set_id, {
|
||||
s_id: set_id,
|
||||
c_id: channel ? channel.id : null,
|
||||
c_name: channel ? channel.login : null,
|
||||
c_title: channel ? channel.displayName : null
|
||||
});
|
||||
|
||||
tes.set(emote_id, set_id);
|
||||
if ( callback )
|
||||
callback(set_id);
|
||||
|
||||
}).catch(() => tes.delete(emote_id));
|
||||
|
||||
return;
|
||||
}*/
|
||||
|
||||
timeout(this.socket.call('get_emote', emote_id), 1000).then(data => {
|
||||
const set_id = data['s_id'];
|
||||
tes.set(emote_id, set_id);
|
||||
|
@ -827,6 +862,7 @@ export default class Emotes extends Module {
|
|||
return null;
|
||||
|
||||
tes.set(set_id, null);
|
||||
|
||||
try {
|
||||
const data = await timeout(this.socket.call('get_emote_set', set_id), 1000);
|
||||
tes.set(set_id, data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue