fetchHistoryMessagesByOptions method

Future<CursorResult<Message>> fetchHistoryMessagesByOptions({
  1. required String conversationId,
  2. required ConversationType type,
  3. FetchMessageOptions? options,
  4. String? cursor,
  5. 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,
    );
  });
}