Merge pull request #2553 from SillyTavern/fix-command-send-not-saving

Fix /send not saving chat in all cases
This commit is contained in:
Cohee 2024-07-24 22:13:43 +03:00 committed by GitHub
commit 83f458fe49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -4698,6 +4698,7 @@ export async function sendMessageAsUser(messageText, messageBias, insertAt = nul
await eventSource.emit(event_types.MESSAGE_SENT, chat_id);
addOneMessage(message);
await eventSource.emit(event_types.USER_MESSAGE_RENDERED, chat_id);
await saveChatConditional();
}
}