sendReplyMessage method

  1. @override
Future<V2TimValueCallback<V2TimMessage>> sendReplyMessage({
  1. required String id,
  2. required String receiver,
  3. required String groupID,
  4. OfflinePushInfo? offlinePushInfo,
  5. bool needReadReceipt = false,
  6. required V2TimMessage replyMessage,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMessage>> sendReplyMessage({
  required String id, // 自己创建的ID
  required String receiver,
  required String groupID,
  OfflinePushInfo? offlinePushInfo,
  bool needReadReceipt = false,
  required V2TimMessage replyMessage, // 被回复的消息
}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .sendReplyMessage(
          id: id,
          receiver: receiver,
          offlinePushInfo: offlinePushInfo,
          groupID: groupID,
          needReadReceipt: needReadReceipt,
          replyMessage: replyMessage);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}