Merge branch 'client-fix-count-userids-encrypted-rooms' into 'master'
[Client] Only joined or invited users in encrypted rooms count Closes #55 See merge request famedly/famedlysdk!208
This commit is contained in:
commit
b47705e169
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue