deletGroupMembers method

Future deletGroupMembers(
  1. List<AtContact> contacts,
  2. AtGroup group
)

Function to delete members of a group

Implementation

Future<dynamic> deletGroupMembers(List<AtContact> contacts, AtGroup group) async {
  try {
    var result = await atContactImpl.deleteMembers(Set.from(contacts), group);
    await updateGroupStreams(group, expandGroup: true);
    return result;
  } catch (e) {
    atSignLogger.severe('error in deleting group members:$e');
    return e;
  }
}