Reverse MemberListStore.loadMembers condition

This commit is contained in:
Florian Duros
2024-11-18 18:20:02 +01:00
parent 72eddef76c
commit 60529538c3

View File

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