mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 19:45:35 +01:00
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…
x
Reference in New Issue
Block a user