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:
David Baker
2026-02-10 14:46:53 +00:00
committed by GitHub
parent a76a0a1dd1
commit 81b111371f

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;