createMergerMessage method

  1. @override
Future<V2TimMsgCreateInfoResult?> createMergerMessage({
  1. required List<String> msgIDList,
  2. required String title,
  3. required List<String> abstractList,
  4. required String compatibleText,
})
override

Implementation

@override
Future<V2TimMsgCreateInfoResult?> createMergerMessage({
  required List<String> msgIDList,
  required String title,
  required List<String> abstractList,
  required String compatibleText,
}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .createMergerMessage(
          msgIDList: msgIDList,
          title: title,
          abstractList: abstractList,
          compatibleText: compatibleText);
  if (res.code == 0) {
    return res.data;
  }
  _coreService.callOnCallback(TIMCallback(
      type: TIMCallbackType.API_ERROR,
      errorMsg: res.desc,
      errorCode: res.code));
  return null;
}