From a339a5b30211817260dbb4e36b3c4eb85d377a92 Mon Sep 17 00:00:00 2001 From: qcrao Date: Wed, 13 Nov 2024 17:56:24 +0800 Subject: [PATCH] hint when skip unread conversation --- bulkDeleteConversations.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bulkDeleteConversations.js b/bulkDeleteConversations.js index 0ee3558..0e9d29c 100644 --- a/bulkDeleteConversations.js +++ b/bulkDeleteConversations.js @@ -68,6 +68,11 @@ async function deleteConversation(checkbox) { ); if (!hoverableDiv) { console.log("Skipping conversation - no hoverable element found"); + // Show notification to user + const title = + conversationElement.querySelector(Selectors.TITLE_SELECTOR) + ?.textContent || "this conversation"; + alert(`Unable to delete unread conversation: "${title}".`); return false; }