findMessages method

  1. @override
Future<V2TimValueCallback<List<V2TimMessage>>> findMessages({
  1. required List<String> messageIDList,
})
override

根据 messageID 查询指定会话中的本地消息

注意: web不支持该接口

Implementation

@override
Future<V2TimValueCallback<List<V2TimMessage>>> findMessages({
  required List<String> messageIDList,
}) async {
  return V2TimValueCallback<List<V2TimMessage>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "findMessages",
        buildMessageMangerParam(
          {
            "messageIDList": messageIDList,
          },
        ),
      ),
    ),
  );
}