Fix room list not being cleared (#32436) (#32438)

* 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 81b111371fba05085d50493ceafd84639d59c9e7)

Co-authored-by: David Baker <dbkr@users.noreply.github.com>
Co-authored-by: Florian Duros <florianduros@element.io>
This commit is contained in:
ElementRobot 2026-02-10 16:48:00 +01:00 committed by GitHub
parent 0575ca9598
commit 8a21062476
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;