Cancel deletion mode on switching chats

This commit is contained in:
Cohee 2023-11-19 21:40:23 +02:00
parent a39ee32f93
commit a02446c4cc
1 changed files with 3 additions and 0 deletions

View File

@ -1360,6 +1360,9 @@ async function printMessages() {
async function clearChat() { async function clearChat() {
count_view_mes = 0; count_view_mes = 0;
extension_prompts = {}; extension_prompts = {};
if (is_delete_mode) {
$("#dialogue_del_mes_cancel").trigger('click');
}
$("#chat").children().remove(); $("#chat").children().remove();
if ($('.zoomed_avatar[forChar]').length) { if ($('.zoomed_avatar[forChar]').length) {
console.debug('saw avatars to remove') console.debug('saw avatars to remove')