mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
id => userID (improve clarity)
This commit is contained in:
@ -7,11 +7,11 @@ import 'package:comunic/models/call_member.dart';
|
||||
|
||||
class CallMembersList extends AbstractList<CallMember> {
|
||||
/// Get the IDs of the users in this list
|
||||
Set<int> get usersID => this.map((f) => f.id).toSet();
|
||||
Set<int> get usersID => this.map((f) => f.userID).toSet();
|
||||
|
||||
/// Remove a specific member from this list
|
||||
void removeUser(int userID) => this.removeWhere((f) => f.id == userID);
|
||||
void removeUser(int userID) => this.removeWhere((f) => f.userID == userID);
|
||||
|
||||
/// Get the connection of a specific user
|
||||
CallMember getUser(int userID) => this.firstWhere((f) => f.id == userID);
|
||||
CallMember getUser(int userID) => this.firstWhere((f) => f.userID == userID);
|
||||
}
|
||||
|
Reference in New Issue
Block a user