Merge pull request #4948 from matrix-org/travis/room-list/fix-filter
Ensure triggered updates get fired for filters in the new room list
This commit is contained in:
commit
e6c7e7c28e
1 changed files with 3 additions and 2 deletions
|
@ -481,8 +481,9 @@ export class RoomListStore2 extends AsyncStore<ActionPayload> {
|
||||||
};
|
};
|
||||||
|
|
||||||
private onAlgorithmFilterUpdated = () => {
|
private onAlgorithmFilterUpdated = () => {
|
||||||
// The filter can happen off-cycle, so trigger an update if we need to.
|
// The filter can happen off-cycle, so trigger an update. The filter will have
|
||||||
this.updateFn.triggerIfWillMark();
|
// already caused a mark.
|
||||||
|
this.updateFn.trigger();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue