From 6b3f05a3cdd58311875b0ad17f38c1cdc3331ef3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 19 Feb 2021 14:10:36 +0000 Subject: [PATCH] Switch RoomListStore to only including the filtered subset Without this it'd include notification counts from Community B when Community A is selected and such. --- src/stores/room-list/RoomListStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/room-list/RoomListStore.ts b/src/stores/room-list/RoomListStore.ts index ea118a4c58..667d9de64d 100644 --- a/src/stores/room-list/RoomListStore.ts +++ b/src/stores/room-list/RoomListStore.ts @@ -58,8 +58,8 @@ export class RoomListStoreClass extends AsyncStoreWithClient { private filterConditions: IFilterCondition[] = []; private tagWatcher = new TagWatcher(this); private updateFn = new MarkedExecution(() => { - for (const tagId of Object.keys(this.unfilteredLists)) { - RoomNotificationStateStore.instance.getListState(tagId).setRooms(this.unfilteredLists[tagId]); + for (const tagId of Object.keys(this.orderedLists)) { + RoomNotificationStateStore.instance.getListState(tagId).setRooms(this.orderedLists[tagId]); } this.emit(LISTS_UPDATE_EVENT); });