fetchHistoryMessagesByOptions method
Future<CursorResult<Message> >
fetchHistoryMessagesByOptions({
- required String conversationId,
- required ConversationType type,
- FetchMessageOptions? options,
- String? cursor,
- int pageSize = 50,
Implementation
Future<CursorResult<Message>> fetchHistoryMessagesByOptions({
required String conversationId,
required ConversationType type,
FetchMessageOptions? options,
String? cursor,
int pageSize = 50,
}) {
return checkResult(ChatSDKEvent.fetchHistoryMessagesByOptions, () {
return Client.getInstance.chatManager.fetchHistoryMessagesByOption(
conversationId,
type,
options: options,
cursor: cursor,
pageSize: pageSize,
);
});
}