From 5e2d02b09e8a07cfd38c974581f3a6a29e20342c Mon Sep 17 00:00:00 2001 From: Lordmau5 Date: Sat, 11 Dec 2021 22:01:47 +0100 Subject: [PATCH] Fix animated modifier emotes --- src/modules/chat/tokenizers.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/chat/tokenizers.jsx b/src/modules/chat/tokenizers.jsx index d836ddea..b92af34e 100644 --- a/src/modules/chat/tokenizers.jsx +++ b/src/modules/chat/tokenizers.jsx @@ -1460,12 +1460,14 @@ export const AddonEmotes = { // Is this emote a modifier? if ( emote.modifier && last_token && last_token.modifiers && (!text.length || (text.length === 1 && text[0] === '')) ) { if ( last_token.modifiers.indexOf(emote.token) === -1 ) { - if ( big ) - last_token.modifiers.push(Object.assign({ - big - }, emote.token)); - else - last_token.modifiers.push(emote.token); + last_token.modifiers.push( + Object.assign({ + big, + anim + }, + emote.token + ) + ); } continue;