setGroupInfo method

  1. @override
Future<V2TimCallback> setGroupInfo({
  1. required V2TimGroupInfo info,
})
override

Implementation

@override
Future<V2TimCallback> setGroupInfo({
  required V2TimGroupInfo info,
}) async {
  Map<String, dynamic> param = {
    "groupID": info.groupID,
    "groupType": info.groupType,
    "groupName": info.groupName,
    "notification": info.notification,
    "introduction": info.introduction,
    "faceUrl": info.faceUrl,
    "isAllMuted": info.isAllMuted,
    "addOpt": info.groupAddOpt,
    "customInfo": info.customInfo,
    "isSupportTopic": info.isSupportTopic,
    "approveOpt": info.approveOpt,
    "isEnablePermissionGroup": info.isEnablePermissionGroup ?? false,
    "defaultPermissions": info.defaultPermissions ?? 0,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setGroupInfo",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("setGroupInfo", param, resp.toLogString());
  return resp;
}