mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
When the algorithm changes, re-add the filter listener
This commit is contained in:
@@ -92,8 +92,10 @@ export class RoomListStore2 extends AsyncStore<ActionPayload> {
|
|||||||
this._matrixClient = null;
|
this._matrixClient = null;
|
||||||
|
|
||||||
this.algorithm.off(LIST_UPDATED_EVENT, this.onAlgorithmListUpdated);
|
this.algorithm.off(LIST_UPDATED_EVENT, this.onAlgorithmListUpdated);
|
||||||
|
this.algorithm.off(FILTER_CHANGED, this.onAlgorithmListUpdated);
|
||||||
this.algorithm = new Algorithm();
|
this.algorithm = new Algorithm();
|
||||||
this.algorithm.on(LIST_UPDATED_EVENT, this.onAlgorithmListUpdated);
|
this.algorithm.on(LIST_UPDATED_EVENT, this.onAlgorithmListUpdated);
|
||||||
|
this.algorithm.on(FILTER_CHANGED, this.onAlgorithmListUpdated);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Public for test usage. Do not call this.
|
// Public for test usage. Do not call this.
|
||||||
|
|||||||
Reference in New Issue
Block a user