reSendMessage method

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

Implementation

@override
Future<V2TimValueCallback<V2TimMessage>> reSendMessage(
    {required String msgID,
    bool? onlineUserOnly}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .reSendMessage(msgID: msgID, onlineUserOnly: onlineUserOnly ?? false);
  if (res.code != 0) {
    String recommendText = ErrorMessageConverter.getErrorMessage(res.code);
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: res.desc,
        errorCode: res.code,
        infoRecommendText: recommendText));
  }
  return res;
}