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.
pull/21833/head
Michael Telatynski 2021-02-19 14:10:36 +00:00
parent 148764aa8a
commit 6b3f05a3cd
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ export class RoomListStoreClass extends AsyncStoreWithClient<IState> {
private filterConditions: IFilterCondition[] = []; private filterConditions: IFilterCondition[] = [];
private tagWatcher = new TagWatcher(this); private tagWatcher = new TagWatcher(this);
private updateFn = new MarkedExecution(() => { private updateFn = new MarkedExecution(() => {
for (const tagId of Object.keys(this.unfilteredLists)) { for (const tagId of Object.keys(this.orderedLists)) {
RoomNotificationStateStore.instance.getListState(tagId).setRooms(this.unfilteredLists[tagId]); RoomNotificationStateStore.instance.getListState(tagId).setRooms(this.orderedLists[tagId]);
} }
this.emit(LISTS_UPDATE_EVENT); this.emit(LISTS_UPDATE_EVENT);
}); });