1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
* Fixed: Animated emotes from add-ons not appearing correctly within tab-completion.
This commit is contained in:
SirStendec 2021-03-20 19:49:20 -04:00
parent d0ac8bccd8
commit 6cc5e20a8a
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"name": "frankerfacez",
"author": "Dan Salvato LLC",
"version": "4.20.80",
"version": "4.20.81",
"description": "FrankerFaceZ is a Twitch enhancement suite.",
"private": true,
"license": "Apache-2.0",

View file

@ -237,6 +237,7 @@ export default class Input extends Module {
this.MentionSuggestions.on('mount', this.overrideMentionMatcher, this);
this.CommandSuggestions.on('mount', this.overrideCommandMatcher, this);
this.chat.context.on('changed:chat.emotes.animated', this.uncacheTabCompletion, this);
this.on('chat.emotes:change-hidden', this.uncacheTabCompletion, this);
this.on('chat.emotes:change-set-hidden', this.uncacheTabCompletion, this);
this.on('chat.emotes:change-favorite', this.uncacheTabCompletion, this);
@ -741,6 +742,7 @@ export default class Input extends Module {
return {emotes: [], length: 0, user_id, user_login, channel_id, channel_login};
const out = [],
anim = this.chat.context.get('chat.emotes.animated') > 0,
hidden_sets = this.settings.provider.get('emote-menu.hidden-sets'),
has_hidden = Array.isArray(hidden_sets) && hidden_sets.length > 0,
added_emotes = new Set;
@ -771,7 +773,7 @@ export default class Input extends Module {
id: `${source}-${emote.id}`,
token: emote.name,
tokenLower: emote.name.toLowerCase(),
srcSet: emote.srcSet,
srcSet: anim && emote.animSrcSet || emote.srcSet,
favorite: favorites.includes(emote.id)
});
}