Hide pinned space notification from home icon

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-10-28 15:30:16 +05:30
parent 60435d505f
commit 2194cb65a2

View file

@ -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;
} }