1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Show notifications even when Element is focused (#8590)

This commit is contained in:
Sumner Evans
2022-05-19 08:44:47 -06:00
committed by GitHub
parent 3f2f839b3b
commit 395b167b20

View File

@@ -95,9 +95,6 @@ export const Notifier = {
if (!plaf.supportsNotifications() || !plaf.maySendNotifications()) { if (!plaf.supportsNotifications() || !plaf.maySendNotifications()) {
return; return;
} }
if (global.document.hasFocus()) {
return;
}
let msg = this.notificationMessageForEvent(ev); let msg = this.notificationMessageForEvent(ev);
if (!msg) return; if (!msg) return;