Fix getSpriteFolderName function call
This commit is contained in:
parent
bbe52886da
commit
89705391d1
|
@ -263,7 +263,7 @@ async function setLastMessageSprite(img, avatar, labels) {
|
||||||
|
|
||||||
if (lastMessage) {
|
if (lastMessage) {
|
||||||
const text = lastMessage.mes || '';
|
const text = lastMessage.mes || '';
|
||||||
const spriteFolderName = getSpriteFolderName(lastMessage);
|
const spriteFolderName = getSpriteFolderName(lastMessage, lastMessage.name);
|
||||||
const sprites = spriteCache[spriteFolderName] || [];
|
const sprites = spriteCache[spriteFolderName] || [];
|
||||||
const label = await getExpressionLabel(text);
|
const label = await getExpressionLabel(text);
|
||||||
const path = labels.includes(label) ? sprites.find(x => x.label === label)?.path : '';
|
const path = labels.includes(label) ? sprites.find(x => x.label === label)?.path : '';
|
||||||
|
|
Loading…
Reference in New Issue