queryThreadTalkHistory method

Future<NIMResult<NIMThreadTalkHistory>> queryThreadTalkHistory(
  1. {required NIMMessage anchor,
  2. required int fromTime,
  3. required int toTime,
  4. required int limit,
  5. required QueryDirection direction,
  6. required bool persist}
)

查询thread聊天云端历史(支持p2p、群、超大群)

anchor 查找锚点,查找对象为此消息所在的thread中的消息 fromTime 起始时间 toTime 终止时间 limit 条数限制 direction 方向 persist 是否持久化

Implementation

Future<NIMResult<NIMThreadTalkHistory>> queryThreadTalkHistory(
    {required NIMMessage anchor,
    required int fromTime,
    required int toTime,
    required int limit,
    required QueryDirection direction,
    required bool persist}) {
  return _platform.queryThreadTalkHistory(
      anchor: anchor,
      fromTime: fromTime,
      toTime: toTime,
      limit: limit,
      direction: direction,
      persist: persist);
}