From c94346db3c912672d4f4e4bb445632752f9b26a1 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Fri, 13 May 2022 17:08:50 -0600 Subject: [PATCH] Show notifications even when Element is focused This makes Element show notifications for messages even when it is the focused application. Before this change, Element would not show any notifications while focused on the app. This causes confusion to end-users, especially if the room where the notification came in is in a different space. Signed-off-by: Sumner Evans --- src/Notifier.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Notifier.ts b/src/Notifier.ts index 892d5bc19cc..60b47bfc891 100644 --- a/src/Notifier.ts +++ b/src/Notifier.ts @@ -95,9 +95,6 @@ export const Notifier = { if (!plaf.supportsNotifications() || !plaf.maySendNotifications()) { return; } - if (global.document.hasFocus()) { - return; - } let msg = this.notificationMessageForEvent(ev); if (!msg) return;