fetchHistoryMessages method
Future
fetchHistoryMessages(
{ - required String conversationId,
- dynamic type = ConversationType.Chat,
- int pageSize = 20,
- dynamic direction = SearchDirection.Up,
- String startMsgId = '',
})
Implementation
Future<CursorResult<Message>> fetchHistoryMessages({
required String conversationId,
ConversationType type = ConversationType.Chat,
int pageSize = 20,
SearchDirection direction = SearchDirection.Up,
String startMsgId = '',
}) {
return checkResult(ChatSDKEvent.fetchHistoryMessages, () {
// ignore: deprecated_member_use
return Client.getInstance.chatManager.fetchHistoryMessages(
conversationId: conversationId,
type: type,
startMsgId: startMsgId,
pageSize: pageSize,
direction: direction,
);
});
}