queryThreadTalkHistory method Null safety
- {required NIMMessage anchor,
- required int fromTime,
- required int toTime,
- required int limit,
- required QueryDirection direction,
- required bool persist}
Specify the parent message in a message thread (stored on the cloud) to query the parent message's replies. Message threads in one-to-one chats, group chats, and super-group chats support this feature.
anchor: Specify the query anchor, which is the parent message (i.e., the replied message) in the message thread. fromTime: Specify the start time for the query. only replies later than the start time can be queried. toTime: Specify the end time for the query. Only replies ealier than the end time can be queried. limit: Specify the maximum matched results. direction: Specify the order (reverse chronological or chronological) for listing the matched results. persist: Specify whether persistence is requied for the storage of the matched results.
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);
}