searchLocalMessages method

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

搜索本地消息

注意: web不支持该接口

Implementation

@override
Future<V2TimValueCallback<V2TimMessageSearchResult>> searchLocalMessages({
  required V2TimMessageSearchParam searchParam,
}) async {
  Map<String, dynamic> param = {
    "searchParam": searchParam.toJson(),
  };
  var resp = V2TimValueCallback<V2TimMessageSearchResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "searchLocalMessages",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("searchLocalMessages", param, resp.toLogString());
  return resp;
}