mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
Fix /sendas wrong name being used
This commit is contained in:
parent
7c2fcbc522
commit
314771fd9a
@ -3260,10 +3260,10 @@ export async function sendMessageAs(args, text) {
|
||||
return '';
|
||||
}
|
||||
|
||||
const { name: nameForMessage, force_avatar, original_avatar } = getNameAndAvatarForMessage(avatarCharacter, name);
|
||||
const { name: avatarCharName, force_avatar, original_avatar } = getNameAndAvatarForMessage(avatarCharacter, name);
|
||||
|
||||
const message = {
|
||||
name: nameForMessage,
|
||||
name: character?.name || name || avatarCharName,
|
||||
is_user: false,
|
||||
is_system: isSystem,
|
||||
send_date: getMessageTimeStamp(),
|
||||
|
Loading…
Reference in New Issue
Block a user