Hide pinned space notification from home icon
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user