mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-21 22:47:41 +01:00
Fix new chat reference not getting saved when starting a new chat
This commit is contained in:
parent
de0dbfb394
commit
d64c5880c8
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user