From 9da7f2d1cd741760417a029f2f42312b8372e41e Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Tue, 15 Mar 2022 13:49:42 +0530 Subject: [PATCH] Fix space shows muted room notification on load Signed-off-by: Ajay Bura --- src/client/state/Notifications.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/state/Notifications.js b/src/client/state/Notifications.js index 23abe6dc..b394b787 100644 --- a/src/client/state/Notifications.js +++ b/src/client/state/Notifications.js @@ -39,7 +39,9 @@ class Notifications extends EventEmitter { _initNoti() { const addNoti = (roomId) => { const room = this.matrixClient.getRoom(roomId); + if (this.getNotiType(room.roomId) === cons.notifs.MUTE) return; if (this.doesRoomHaveUnread(room) === false) return; + const total = room.getUnreadNotificationCount('total'); const highlight = room.getUnreadNotificationCount('highlight'); this._setNoti(room.roomId, total ?? 0, highlight ?? 0);