reSendMessage method

  1. @override
Future<V2TimValueCallback<V2TimMessage>> reSendMessage({
  1. required String msgID,
  2. bool onlineUserOnly = false,
  3. Object? webMessageInstatnce,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMessage>> reSendMessage({required String msgID, bool onlineUserOnly = false, Object? webMessageInstatnce}) async {
  Map<String, dynamic> param = {"msgID": msgID, "onlineUserOnly": onlineUserOnly, "webMessageInstatnce": webMessageInstatnce};
  var resp = V2TimValueCallback<V2TimMessage>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "reSendMessage",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("reSendMessage", param, resp.toLogString());
  return resp;
}