Fix spaces notification dots wrongly including upgraded (hidden) rooms

pull/21833/head
Michael Telatynski 2021-04-22 08:30:44 +01:00
parent 5b8cd10ee5
commit ec0612f70d
1 changed files with 1 additions and 2 deletions

View File

@ -389,8 +389,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
this.spaceFilteredRooms.forEach((roomIds, s) => {
// Update NotificationStates
const rooms = this.matrixClient.getRooms().filter(room => roomIds.has(room.roomId));
this.getNotificationState(s)?.setRooms(rooms);
this.getNotificationState(s)?.setRooms(visibleRooms.filter(room => roomIds.has(room.roomId)));
});
}, 100, {trailing: true, leading: true});