From 0280bfa1bba0cc4bb95ebb0873bb15b3413d3942 Mon Sep 17 00:00:00 2001 From: kingbri Date: Mon, 17 Jul 2023 00:19:05 -0400 Subject: [PATCH] Script: Don't save character on chat creation There's no need to save a character when a new chat is created. The main reason for this commit is that after creating a new chat with metadata, it immediately gets cleared after a few seconds. This may be a race condition, but there's also no need for this function call in the first place. Fixes: Author's note not injecting on first message when new chat is spawned. Signed-off-by: kingbri --- public/script.js | 1 - 1 file changed, 1 deletion(-) diff --git a/public/script.js b/public/script.js index cc0b7a79a..88949952c 100644 --- a/public/script.js +++ b/public/script.js @@ -7236,7 +7236,6 @@ $(document).ready(function () { chat_metadata = {}; characters[this_chid].chat = name2 + " - " + humanizedDateTime(); $("#selected_chat_pole").val(characters[this_chid].chat); - saveCharacterDebounced(); getChat(); } }