hint when skip unread conversation

This commit is contained in:
qcrao
2024-11-13 17:56:24 +08:00
parent 3aeb246deb
commit a339a5b302

View File

@@ -68,6 +68,11 @@ async function deleteConversation(checkbox) {
); );
if (!hoverableDiv) { if (!hoverableDiv) {
console.log("Skipping conversation - no hoverable element found"); 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; return false;
} }