mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 17:07:07 +01:00
fix neutral avatar again
This commit is contained in:
parent
a989ccf318
commit
d21b24666a
@ -3131,7 +3131,7 @@ export async function sendMessageAs(args, text) {
|
|||||||
let force_avatar, original_avatar;
|
let force_avatar, original_avatar;
|
||||||
|
|
||||||
const chatCharacter = this_chid !== null ? characters[this_chid] : null;
|
const chatCharacter = this_chid !== null ? characters[this_chid] : null;
|
||||||
const isNeutralCharacter = !chatCharacter && name2 === neutralCharacterName;
|
const isNeutralCharacter = !chatCharacter && name2 === neutralCharacterName && name === neutralCharacterName;
|
||||||
|
|
||||||
if (chatCharacter === character || isNeutralCharacter) {
|
if (chatCharacter === character || isNeutralCharacter) {
|
||||||
// If the targeted character is the currently selected one in a solo chat, we don't need to force any avatars
|
// If the targeted character is the currently selected one in a solo chat, we don't need to force any avatars
|
||||||
|
Loading…
Reference in New Issue
Block a user