Fix notifications not displaying when document is not focused (#1425)
Allows notifications from the active room while app is not focused (e.g. tabbed out)
This commit is contained in:
parent
47f6c44c17
commit
fcd7723f73
|
@ -234,7 +234,7 @@ class Notifications extends EventEmitter {
|
|||
const actions = this.matrixClient.getPushActionsForEvent(mEvent);
|
||||
if (!actions?.notify) return;
|
||||
|
||||
if (navigation.selectedRoomId === room.roomId && document.visibilityState === 'visible') return;
|
||||
if (navigation.selectedRoomId === room.roomId && document.hasFocus()) return;
|
||||
|
||||
if (mEvent.isEncrypted()) {
|
||||
await mEvent.attemptDecryption(this.matrixClient.crypto);
|
||||
|
|
Loading…
Reference in a new issue