From 2dacf74515da6b033ea23aaa904ce7f00b542777 Mon Sep 17 00:00:00 2001 From: Shivam Maurya Date: Wed, 14 Oct 2026 06:38:27 +0530 Subject: [PATCH] fix(ui): send only one DELETE per message when leaving with pending deletes --- ui/src/reactions.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/src/reactions.ts b/ui/src/reactions.ts index 0f8f6db22..1a5015c91 100644 --- a/ui/src/reactions.ts +++ b/ui/src/reactions.ts @@ -6,7 +6,6 @@ const AUDIO_REPEAT_DELAY = 1000; export const registerReactions = (stores: StoreMapping) => { window.addEventListener('pagehide', stores.messagesStore.executePendingDeletes); - window.addEventListener('beforeunload', stores.messagesStore.executePendingDeletes); const clearAll = () => { stores.messagesStore.clearAll();