Merge pull request #5900 from matrix-org/t3chguy/fix/17024

Fix spaces notification dots wrongly including upgraded (hidden) rooms
This commit is contained in:
Michael Telatynski 2021-04-22 14:30:20 +01:00 committed by GitHub
commit 5c93b99ec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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