From d64c5880c819e8947062591c88af84e009dfc9b5 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 24 Aug 2023 00:54:36 +0300 Subject: [PATCH] Fix new chat reference not getting saved when starting a new chat --- public/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index 0b2678bb2..75ea593e3 100644 --- a/public/script.js +++ b/public/script.js @@ -7478,14 +7478,15 @@ $(document).ready(function () { chat.length = 0; if (selected_group) { - createNewGroupChat(selected_group); + await createNewGroupChat(selected_group); } else { //RossAscends: added character name to new chat filenames and replaced Date.now() with humanizedDateTime; chat_metadata = {}; characters[this_chid].chat = name2 + " - " + humanizedDateTime(); $("#selected_chat_pole").val(characters[this_chid].chat); - getChat(); + await getChat(); + await createOrEditCharacter(); } }