mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
When the algorithm changes, re-add the filter listener
This commit is contained in:
parent
bdb641279a
commit
bb6d46f926
@ -92,8 +92,10 @@ export class RoomListStore2 extends AsyncStore<ActionPayload> {
|
||||
this._matrixClient = null;
|
||||
|
||||
this.algorithm.off(LIST_UPDATED_EVENT, this.onAlgorithmListUpdated);
|
||||
this.algorithm.off(FILTER_CHANGED, this.onAlgorithmListUpdated);
|
||||
this.algorithm = new Algorithm();
|
||||
this.algorithm.on(LIST_UPDATED_EVENT, this.onAlgorithmListUpdated);
|
||||
this.algorithm.on(FILTER_CHANGED, this.onAlgorithmListUpdated);
|
||||
}
|
||||
|
||||
// Public for test usage. Do not call this.
|
||||
|
Loading…
Reference in New Issue
Block a user