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')