Don't purge metadata in clearChat

This commit is contained in:
Cohee
2023-07-18 22:31:39 +03:00
parent fa6803f2de
commit 96c668296a

View File

@@ -1058,6 +1058,7 @@ async function delChat(chatfile) {
if (response.ok === true) {
// choose another chat if current was deleted
if (chatfile.replace('.jsonl', '') === characters[this_chid].chat) {
chat_metadata = {};
await replaceCurrentChat();
}
}
@@ -1109,7 +1110,6 @@ function clearChat() {
$('.zoomed_avatar[forChar]').remove();
} else { console.debug('saw no avatars') }
itemizedPrompts = [];
chat_metadata = {};
}
async function deleteLastMessage() {