mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-13 17:10:06 +00:00
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
|
@ -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