Skip to content

Commit 1fec05b

Browse files
committed
Fetch rooms after space store is ready
If we fetch a list of rooms and then wait for the space store to be ready, we will need some way of handling the onAction calls we get while we wait. These calls are dropped now.
1 parent 1cf3c8b commit 1fec05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/room-list-v3/RoomListStoreV3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
105105
if (this.roomSkipList?.initialized || !this.matrixClient) return;
106106
const sorter = new RecencySorter(this.matrixClient.getSafeUserId());
107107
this.roomSkipList = new RoomSkipList(sorter, FILTERS);
108-
const rooms = this.getRooms();
109108
await SpaceStore.instance.storeReadyPromise;
109+
const rooms = this.getRooms();
110110
this.roomSkipList.seed(rooms);
111111
this.emit(LISTS_UPDATE_EVENT);
112112
}

0 commit comments

Comments
 (0)