searchLocalMessages method

  1. @override
Future<V2TimValueCallback<V2TimMessageSearchResult>> searchLocalMessages({
  1. required V2TimMessageSearchParam searchParam,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMessageSearchResult>> searchLocalMessages(
    {required V2TimMessageSearchParam searchParam}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .searchLocalMessages(searchParam: searchParam);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}