mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Ensure that sub-spaces aren't considered for notification badges
This commit is contained in:
parent
399ceaf002
commit
af8c07a69b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue