deleteConversationGroup static method

Future<V2TimCallback> deleteConversationGroup({
  1. required String groupName,
})

Implementation

static Future<V2TimCallback> deleteConversationGroup({
  required String groupName,
}) async {
  String userData = Tools.generateUserData();
  Pointer<Uint8> user_data = Tools.string2PointerInt8(userData);
  Pointer<Uint8> group_name = Tools.string2PointerInt8(groupName);
  int res = desktopSDK.D_TIMConvDeleteConversationGroup(group_name, user_data);
  if (res != TIMResult.TIM_SUCC) {
    return V2TimCallback.fromJson({
      "code": res,
      "desc": "",
    });
  } else {
    Map<String, dynamic> data = await getAsyncData(apiKey: userData);
    return V2TimCallback.fromJson({
      "code": res,
      "desc": "",
    });
  }
}