mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-03 20:00:57 +00:00
4.20.81
* Fixed: Animated emotes from add-ons not appearing correctly within tab-completion.
This commit is contained in:
parent
d0ac8bccd8
commit
6cc5e20a8a
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "frankerfacez",
|
"name": "frankerfacez",
|
||||||
"author": "Dan Salvato LLC",
|
"author": "Dan Salvato LLC",
|
||||||
"version": "4.20.80",
|
"version": "4.20.81",
|
||||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|
|
@ -237,6 +237,7 @@ export default class Input extends Module {
|
||||||
this.MentionSuggestions.on('mount', this.overrideMentionMatcher, this);
|
this.MentionSuggestions.on('mount', this.overrideMentionMatcher, this);
|
||||||
this.CommandSuggestions.on('mount', this.overrideCommandMatcher, 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-hidden', this.uncacheTabCompletion, this);
|
||||||
this.on('chat.emotes:change-set-hidden', this.uncacheTabCompletion, this);
|
this.on('chat.emotes:change-set-hidden', this.uncacheTabCompletion, this);
|
||||||
this.on('chat.emotes:change-favorite', 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};
|
return {emotes: [], length: 0, user_id, user_login, channel_id, channel_login};
|
||||||
|
|
||||||
const out = [],
|
const out = [],
|
||||||
|
anim = this.chat.context.get('chat.emotes.animated') > 0,
|
||||||
hidden_sets = this.settings.provider.get('emote-menu.hidden-sets'),
|
hidden_sets = this.settings.provider.get('emote-menu.hidden-sets'),
|
||||||
has_hidden = Array.isArray(hidden_sets) && hidden_sets.length > 0,
|
has_hidden = Array.isArray(hidden_sets) && hidden_sets.length > 0,
|
||||||
added_emotes = new Set;
|
added_emotes = new Set;
|
||||||
|
@ -771,7 +773,7 @@ export default class Input extends Module {
|
||||||
id: `${source}-${emote.id}`,
|
id: `${source}-${emote.id}`,
|
||||||
token: emote.name,
|
token: emote.name,
|
||||||
tokenLower: emote.name.toLowerCase(),
|
tokenLower: emote.name.toLowerCase(),
|
||||||
srcSet: emote.srcSet,
|
srcSet: anim && emote.animSrcSet || emote.srcSet,
|
||||||
favorite: favorites.includes(emote.id)
|
favorite: favorites.includes(emote.id)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue