searchLocalMessages method

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

搜索本地消息

注意: web不支持该接口

Implementation

@override
Future<V2TimValueCallback<V2TimMessageSearchResult>> searchLocalMessages({
  required V2TimMessageSearchParam searchParam,
}) async {
  return V2TimValueCallback<V2TimMessageSearchResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "searchLocalMessages",
        buildMessageMangerParam(
          {
            "searchParam": searchParam.toJson(),
          },
        ),
      ),
    ),
  );
}