deleteMessages method

  1. @override
Future<V2TimCallback> deleteMessages({
  1. required List<String> msgIDs,
  2. List? webMessageInstanceList,
})
override

Implementation

@override
Future<V2TimCallback> deleteMessages(
    {required List<String> msgIDs,
    List<dynamic>? webMessageInstanceList}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .deleteMessages(
          msgIDs: msgIDs, webMessageInstanceList: webMessageInstanceList);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}