From a02446c4cc7a90fb1fb136a730045ba8674fa427 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 19 Nov 2023 21:40:23 +0200 Subject: [PATCH] Cancel deletion mode on switching chats --- public/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/script.js b/public/script.js index 58daa02c4..d7e5d1786 100644 --- a/public/script.js +++ b/public/script.js @@ -1360,6 +1360,9 @@ async function printMessages() { async function clearChat() { count_view_mes = 0; extension_prompts = {}; + if (is_delete_mode) { + $("#dialogue_del_mes_cancel").trigger('click'); + } $("#chat").children().remove(); if ($('.zoomed_avatar[forChar]').length) { console.debug('saw avatars to remove')