From 60529538c39031ae7e91faac2d1338036cdc588f Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 18 Nov 2024 18:20:02 +0100 Subject: [PATCH] Reverse `MemberListStore.loadMembers` condition --- src/stores/MemberListStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/MemberListStore.ts b/src/stores/MemberListStore.ts index cf4b933983..e500dec84c 100644 --- a/src/stores/MemberListStore.ts +++ b/src/stores/MemberListStore.ts @@ -70,7 +70,7 @@ export class MemberListStore { return []; } - if (!(await this.isLazyLoadingEnabled(roomId)) || this.loadedRooms.has(roomId)) { + if (this.loadedRooms.has(roomId) || !(await this.isLazyLoadingEnabled(roomId))) { // nice and easy, we must already have all the members so just return them. return this.loadMembersInRoom(room); }