Reverse `MemberListStore.loadMembers` condition

pull/28466/head
Florian Duros 2024-11-18 18:20:02 +01:00
parent 72eddef76c
commit 60529538c3
No known key found for this signature in database
GPG Key ID: A5BBB4041B493F15
1 changed files with 1 additions and 1 deletions

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