revokeMessage method

  1. @override
Future<V2TimCallback> revokeMessage({
  1. required String msgID,
  2. Object? webMessageInstance,
})
override

Implementation

@override
Future<V2TimCallback> revokeMessage(
    {required String msgID, Object? webMessageInstance}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .revokeMessage(msgID: msgID, webMessageInstatnce: webMessageInstance);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}