1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Display the list of members of the call

This commit is contained in:
2020-04-20 14:13:03 +02:00
parent 08c2ac32aa
commit 9154fe47e1
2 changed files with 44 additions and 2 deletions

View File

@ -5,4 +5,10 @@ import 'package:comunic/models/call_member.dart';
///
/// @author Pierre Hubert
class CallMembersList extends AbstractList<CallMember> {}
class CallMembersList extends AbstractList<CallMember> {
/// Get the IDs of the users in this list
Set<int> get usersID => this.map((f) => f.id).toSet();
/// Remove a specific member from this list
void removeUser(int userID) => this.removeWhere((f) => f.id == userID);
}