#1484 Consolidate chat name template

This commit is contained in:
Cohee 2023-12-07 16:59:53 +02:00
parent 2417ae9d87
commit 990f958f4f

View File

@ -1291,7 +1291,7 @@ async function replaceCurrentChat() {
// start new chat
else {
characters[this_chid].chat = name2 + ' - ' + humanizedDateTime();
characters[this_chid].chat = `${name2} - ${humanizedDateTime()}`;
$('#selected_chat_pole').val(characters[this_chid].chat);
saveCharacterDebounced();
await getChat();
@ -8026,7 +8026,7 @@ jQuery(async function () {
else {
//RossAscends: added character name to new chat filenames and replaced Date.now() with humanizedDateTime;
chat_metadata = {};
characters[this_chid].chat = name2 + '-' + humanizedDateTime();
characters[this_chid].chat = `${name2} - ${humanizedDateTime()}`;
$('#selected_chat_pole').val(characters[this_chid].chat);
await getChat();
await createOrEditCharacter();