queryHistoryMessage abstract method
Future<ZIMMessageQueriedResult>
queryHistoryMessage(
- String conversationID,
- ZIMConversationType conversationType,
- ZIMMessageQueryConfig config
Supported versions: 2.1.5 and above. Detailed description: This method is used to query historical messages. Business scenario: When you need to obtain past historical messages, you can call this interface to query historical messages by paging. Call timing/Notification timing: Called when historical messages need to be queried. Restrictions: Effective after login, invalid after logout.
conversationID
The session ID of the queried historical message.
conversationType
The type of the queried historical message.
config
Query the configuration of historical messages.
Implementation
/// Detailed description: This method is used to query historical messages.
/// Business scenario: When you need to obtain past historical messages, you can call this interface to query historical messages by paging.
/// Call timing/Notification timing: Called when historical messages need to be queried.
/// Restrictions: Effective after login, invalid after logout.
///
/// [conversationID] The session ID of the queried historical message.
/// [conversationType] The type of the queried historical message.
/// [config] Query the configuration of historical messages.
Future<ZIMMessageQueriedResult> queryHistoryMessage(String conversationID,
ZIMConversationType conversationType, ZIMMessageQueryConfig config);