dismissGroup method

Future<V2TimCallback> dismissGroup(
  1. Map<String, dynamic> params
)

Implementation

Future<V2TimCallback> dismissGroup(Map<String, dynamic> params) async {
  try {
    final res = await wrappedPromiseToFuture(
        V2TIMManagerWeb.timWeb!.dismissGroup(params['groupID']));
    final code = res.code;
    if (code == 0) {
      return CommonUtils.returnSuccessWithDesc("ok");
    } else {
      return CommonUtils.returnError('解散群败');
    }
  } catch (err) {
    return CommonUtils.returnError(err);
  }
}