* Fix room list not being cleared
RoomListV3 was lacking an onNotReady which meant that the room list
would sometimes not be cleared between logins.
* Fix return type
---------
(cherry picked from commit 81b111371f)
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
Co-authored-by: Florian Duros <florianduros@element.io>
This commit is contained in:
co-authored by
David Baker
Florian Duros
parent
0575ca9598
commit
8a21062476
@@ -161,6 +161,10 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
|
|||||||
this.emit(LISTS_UPDATE_EVENT);
|
this.emit(LISTS_UPDATE_EVENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected async onNotReady(): Promise<void> {
|
||||||
|
this.roomSkipList = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
protected async onAction(payload: ActionPayload): Promise<void> {
|
protected async onAction(payload: ActionPayload): Promise<void> {
|
||||||
if (!this.matrixClient || !this.roomSkipList?.initialized) return;
|
if (!this.matrixClient || !this.roomSkipList?.initialized) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user