deletGroupMembers method

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

Implementation

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