Fix space shows muted room notification on load
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
23f57e4d75
commit
9da7f2d1cd
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue