Ensure that sub-spaces aren't considered for notification badges

This commit is contained in:
Michael Telatynski 2021-09-29 11:45:27 +01:00
parent 399ceaf002
commit af8c07a69b

View file

@ -595,7 +595,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
// Update NotificationStates
this.getNotificationState(s).setRooms(visibleRooms.filter(room => {
if (!roomIds.has(room.roomId)) return false;
if (!roomIds.has(room.roomId) || room.isSpaceRoom()) return false;
if (DMRoomMap.shared().getUserIdForRoomId(room.roomId)) {
return s === HOME_SPACE;