Wait for current chat to finish saving before allowing to switch

This commit is contained in:
Cohee
2025-05-17 08:45:12 +03:00
parent 484f7e894a
commit e52b3afea9
2 changed files with 3 additions and 0 deletions

View File

@ -7299,6 +7299,7 @@ function getFirstMessage() {
}
export async function openCharacterChat(file_name) {
await waitUntilCondition(() => !isChatSaving, debounce_timeout.extended, 10);
await clearChat();
characters[this_chid]['chat'] = file_name;
chat.length = 0;