mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-20 00:35:17 +00:00
Update navbar
This commit is contained in:
@ -34,4 +34,9 @@ class MembershipList extends AbstractList<Membership> {
|
||||
/// Remove a friend membership from the list
|
||||
void removeFriend(int friendID) => remove(firstWhere(
|
||||
(f) => f.type == MembershipType.FRIEND && f.friend.id == friendID));
|
||||
|
||||
/// Get the list of conversations of a group
|
||||
Set<Membership> getGroupConversations(int groupID) => where((element) =>
|
||||
element.type == MembershipType.CONVERSATION &&
|
||||
element.conversation.groupID == groupID).toSet();
|
||||
}
|
||||
|
Reference in New Issue
Block a user