createMergerMessage method

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

Implementation

@override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createMergerMessage({
  required List<String> msgIDList,
  required String title,
  required List<String> abstractList,
  required String compatibleText,
  List<String>? webMessageInstanceList,
}) async {
  Map<String, dynamic> param = {
    "msgIDList": msgIDList,
    "title": title,
    "abstractList": abstractList, // 截取前30个字符
    "compatibleText": compatibleText,
  };
  var resp = V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        'createMergerMessage',
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("createMergerMessage", param, resp.toLogString());
  return resp;
}