Small fix group chats not using default avatars

9e73e2598eb06e213cd78c8134b61dd7a0f602b6

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/slash-commands.js+1 -1
@@ -3129,7 +3129,7 @@ export async function sendMessageAs(args, text) {
3129 const character = characters.find(x => x.avatar === name) ?? characters.find(x => x.name === name);3129 const character = characters.find(x => x.avatar === name) ?? characters.find(x => x.name === name);
3130 let force_avatar, original_avatar;3130 let force_avatar, original_avatar;
31313131
3132 if (characters[this_chid] === character) {3132 if (this_chid !== undefined && characters[this_chid] === character) {
3133 // If the targeted character is the currently selected one in a solo chat, we don't need to force any avatars3133 // If the targeted character is the currently selected one in a solo chat, we don't need to force any avatars
3134 }3134 }
3135 else if (character && character.avatar !== 'none') {3135 else if (character && character.avatar !== 'none') {