[Client] Only joined or invited users in encrypted rooms count
This commit is contained in:
parent
67ac01fdc5
commit
de211b08bc
|
@ -1365,10 +1365,12 @@ class Client {
|
||||||
if (rooms[i].encrypted) {
|
if (rooms[i].encrypted) {
|
||||||
List<User> userList = await rooms[i].requestParticipants();
|
List<User> userList = await rooms[i].requestParticipants();
|
||||||
for (User user in userList) {
|
for (User user in userList) {
|
||||||
|
if ([Membership.join, Membership.invite].contains(user.membership)) {
|
||||||
userIds.add(user.id);
|
userIds.add(user.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return userIds;
|
return userIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue