Fix: unable to delete unread conversation

This commit is contained in:
Oleh Bespalov
2025-03-04 13:35:57 +01:00
parent 782e7b3669
commit 50736dd0c1

View File

@@ -63,8 +63,8 @@ async function deleteConversation(checkbox) {
console.log("conversationElement", conversationElement); console.log("conversationElement", conversationElement);
// Look for draggable element within the conversation element // Look for draggable element within the conversation element
const draggableElement = conversationElement.querySelector("[draggable=\"true\"]"); const interactiveElement = conversationElement.querySelector("[draggable=\"true\"]");
if (!draggableElement) { if (!interactiveElement) {
console.log("Skipping conversation - no interactive elements found"); console.log("Skipping conversation - no interactive elements found");
// Show notification to user // Show notification to user
const title = const title =
@@ -81,7 +81,7 @@ async function deleteConversation(checkbox) {
}); });
console.log("1. Hovering over conversation...", conversationElement); console.log("1. Hovering over conversation...", conversationElement);
draggableElement.dispatchEvent(hoverEvent); interactiveElement.dispatchEvent(hoverEvent);
await delay(200); await delay(200);
// Try to find the three dot button // Try to find the three dot button