Forbid double initialization on opening a chat with 1 message

This commit is contained in:
Cohee 2024-07-26 21:56:36 +03:00
parent a2661b2c48
commit ff5d5fcc5e
1 changed files with 1 additions and 1 deletions

View File

@ -6107,7 +6107,7 @@ export async function openCharacterChat(file_name) {
chat_metadata = {}; chat_metadata = {};
await getChat(); await getChat();
$('#selected_chat_pole').val(file_name); $('#selected_chat_pole').val(file_name);
await createOrEditCharacter(); await createOrEditCharacter(new CustomEvent('newChat'));
} }
////////// OPTIMZED MAIN API CHANGE FUNCTION //////////// ////////// OPTIMZED MAIN API CHANGE FUNCTION ////////////