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 <bdashore3@proton.me>
This commit is contained in:
kingbri
2023-07-17 00:19:05 -04:00
parent e58dbec3de
commit 0280bfa1bb

View File

@@ -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();
}
}