From 8a210624769782c87d3c3532ab86c3fc75437222 Mon Sep 17 00:00:00 2001 From: ElementRobot Date: Tue, 10 Feb 2026 16:48:00 +0100 Subject: [PATCH] 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 Co-authored-by: Florian Duros --- src/stores/room-list-v3/RoomListStoreV3.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stores/room-list-v3/RoomListStoreV3.ts b/src/stores/room-list-v3/RoomListStoreV3.ts index b643755a2a..9d6355788b 100644 --- a/src/stores/room-list-v3/RoomListStoreV3.ts +++ b/src/stores/room-list-v3/RoomListStoreV3.ts @@ -161,6 +161,10 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient { this.emit(LISTS_UPDATE_EVENT); } + protected async onNotReady(): Promise { + this.roomSkipList = undefined; + } + protected async onAction(payload: ActionPayload): Promise { if (!this.matrixClient || !this.roomSkipList?.initialized) return;