1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-20 00:35:17 +00:00

Update navbar

This commit is contained in:
2021-04-07 16:28:59 +02:00
parent 7497fc5c65
commit 662c4ab3eb
2 changed files with 38 additions and 18 deletions

View File

@ -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();
}