mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Forbid double initialization on opening a chat with 1 message
This commit is contained in:
@@ -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 ////////////
|
||||||
|
Reference in New Issue
Block a user