Forbid double initialization on opening a chat with 1 message
| @@ -6107,7 +6107,7 @@ export async function openCharacterChat(file_name) { | |||
| 6107 | chat_metadata = {}; | 6107 | chat_metadata = {}; |
| 6108 | await getChat(); | 6108 | await getChat(); |
| 6109 | $('#selected_chat_pole').val(file_name); | 6109 | $('#selected_chat_pole').val(file_name); |
| 6110 | await createOrEditCharacter(); | 6110 | await createOrEditCharacter(new CustomEvent('newChat')); |
| 6111 | } | 6111 | } |
| 6112 | 6112 | ||
| 6113 | ////////// OPTIMZED MAIN API CHANGE FUNCTION //////////// | 6113 | ////////// OPTIMZED MAIN API CHANGE FUNCTION //////////// |