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