[Client] Only joined or invited users in encrypted rooms count

This commit is contained in:
Christian Pauly 2020-02-19 10:56:41 +01:00
parent 67ac01fdc5
commit de211b08bc

View file

@ -1365,7 +1365,9 @@ class Client {
if (rooms[i].encrypted) {
List<User> userList = await rooms[i].requestParticipants();
for (User user in userList) {
userIds.add(user.id);
if ([Membership.join, Membership.invite].contains(user.membership)) {
userIds.add(user.id);
}
}
}
}