Fix getSpriteFolderName function call

This commit is contained in:
Cohee 2023-09-07 17:52:37 +03:00
parent bbe52886da
commit 89705391d1
1 changed files with 1 additions and 1 deletions

View File

@ -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 : '';