mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 02:47:52 +01:00
Small fix group chats not using default avatars
This commit is contained in:
parent
10a23012f3
commit
9e73e2598e
@ -3129,7 +3129,7 @@ export async function sendMessageAs(args, text) {
|
|||||||
const character = characters.find(x => x.avatar === name) ?? characters.find(x => x.name === name);
|
const character = characters.find(x => x.avatar === name) ?? characters.find(x => x.name === name);
|
||||||
let force_avatar, original_avatar;
|
let force_avatar, original_avatar;
|
||||||
|
|
||||||
if (characters[this_chid] === character) {
|
if (this_chid !== undefined && characters[this_chid] === character) {
|
||||||
// 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
|
||||||
}
|
}
|
||||||
else if (character && character.avatar !== 'none') {
|
else if (character && character.avatar !== 'none') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user