fix: Invite left members
This commit is contained in:
parent
3910dac42c
commit
988213aa39
2 changed files with 12 additions and 10 deletions
|
|
@ -98,11 +98,13 @@ class _InvitationSelectionState extends State<InvitationSelection> {
|
|||
Profile.fromJson({'user_id': '@$text'}),
|
||||
]);
|
||||
}
|
||||
final participants = widget.room
|
||||
.getParticipants()
|
||||
.where((user) =>
|
||||
[Membership.join, Membership.invite].contains(user.membership))
|
||||
.toList();
|
||||
foundProfiles.removeWhere((profile) =>
|
||||
widget.room
|
||||
.getParticipants()
|
||||
.indexWhere((u) => u.id == profile.userId) !=
|
||||
-1);
|
||||
participants.indexWhere((u) => u.id == profile.userId) != -1);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue