From 87120c6c26ae5afe8e48dc93085532c164ae01ae Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 10 Jul 2020 15:58:39 -0600 Subject: [PATCH] Ensure triggered updates get fired for filters in the new room list Fixes https://github.com/vector-im/riot-web/issues/14404 --- src/stores/room-list/RoomListStore2.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stores/room-list/RoomListStore2.ts b/src/stores/room-list/RoomListStore2.ts index 4741e1a30f..38a9509e0c 100644 --- a/src/stores/room-list/RoomListStore2.ts +++ b/src/stores/room-list/RoomListStore2.ts @@ -481,8 +481,9 @@ export class RoomListStore2 extends AsyncStore { }; private onAlgorithmFilterUpdated = () => { - // The filter can happen off-cycle, so trigger an update if we need to. - this.updateFn.triggerIfWillMark(); + // The filter can happen off-cycle, so trigger an update. The filter will have + // already caused a mark. + this.updateFn.trigger(); }; /**