From 89705391d1437e170784e2b2cb42f7fbe1fe5afc Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 7 Sep 2023 17:52:37 +0300 Subject: [PATCH] Fix getSpriteFolderName function call --- public/scripts/extensions/expressions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/extensions/expressions/index.js b/public/scripts/extensions/expressions/index.js index 3fa0a33b2..6026ebf9d 100644 --- a/public/scripts/extensions/expressions/index.js +++ b/public/scripts/extensions/expressions/index.js @@ -263,7 +263,7 @@ async function setLastMessageSprite(img, avatar, labels) { if (lastMessage) { const text = lastMessage.mes || ''; - const spriteFolderName = getSpriteFolderName(lastMessage); + const spriteFolderName = getSpriteFolderName(lastMessage, lastMessage.name); const sprites = spriteCache[spriteFolderName] || []; const label = await getExpressionLabel(text); const path = labels.includes(label) ? sprites.find(x => x.label === label)?.path : '';