mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'staging' into char-find-and-sendas-extended
This commit is contained in:
@ -2598,8 +2598,13 @@ async function askCharacter(args, text) {
|
||||
return;
|
||||
}
|
||||
|
||||
setCharacterId(prevChId);
|
||||
setCharacterName(characters[prevChId].name);
|
||||
if (prevChId !== undefined) {
|
||||
setCharacterId(prevChId);
|
||||
setCharacterName(characters[prevChId].name);
|
||||
} else {
|
||||
setCharacterId(undefined);
|
||||
setCharacterName(neutralCharacterName);
|
||||
}
|
||||
|
||||
// Only force the new avatar if the character name is the same
|
||||
// This skips if an error was fired
|
||||
|
Reference in New Issue
Block a user