Fix room list not being cleared (#32436)
* 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 Co-authored-by: Florian Duros <florianduros@element.io> --------- Co-authored-by: Florian Duros <florianduros@element.io>
This commit is contained in:
@@ -161,6 +161,10 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
|
||||
this.emit(LISTS_UPDATE_EVENT);
|
||||
}
|
||||
|
||||
protected async onNotReady(): Promise<void> {
|
||||
this.roomSkipList = undefined;
|
||||
}
|
||||
|
||||
protected async onAction(payload: ActionPayload): Promise<void> {
|
||||
if (!this.matrixClient || !this.roomSkipList?.initialized) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user