addGroupMembers method

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

Implementation

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