mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#1484 Consolidate chat name template
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user