Hide pinned space notification from home icon
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
60435d505f
commit
2194cb65a2
1 changed files with 7 additions and 0 deletions
|
@ -127,6 +127,13 @@ function SideBar() {
|
||||||
noti.total += childNoti.total;
|
noti.total += childNoti.total;
|
||||||
noti.highlight += childNoti.highlight;
|
noti.highlight += childNoti.highlight;
|
||||||
});
|
});
|
||||||
|
if (noti === null) return noti;
|
||||||
|
|
||||||
|
[...roomList.spaceShortcut].forEach((spaceId) => {
|
||||||
|
const shortcutNoti = notifications.getNoti(spaceId);
|
||||||
|
noti.total -= shortcutNoti.total;
|
||||||
|
noti.highlight -= shortcutNoti.highlight;
|
||||||
|
});
|
||||||
|
|
||||||
return noti;
|
return noti;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue