createGroup method

Future createGroup(
  1. AtGroup atGroup
)

Function to create a group

Implementation

Future<dynamic> createGroup(AtGroup atGroup) async {
  atGroup = removeImageFromAtGroupMembers(atGroup);

  try {
    var group = await atContactImpl.createGroup(atGroup);
    if (group is AtGroup) {
      await updateGroupStreams(group, expandGroup: true);
      return group;
    }
  } catch (e) {
    atSignLogger.severe('error in creating group: $e');
    return;
  }
}