listBatchMessages method

Future<List<DecodedMessage>> listBatchMessages(
  1. Iterable<Conversation> conversations, {
  2. Iterable<Pagination>? paginations,
  3. DateTime? start,
  4. DateTime? end,
  5. int? limit,
  6. SortDirection sort = xmtp.SortDirection.SORT_DIRECTION_DESCENDING,
})

This lists messages sent to the conversations. This is identical to listMessages except it pulls messages from multiple conversations in a single call.

Implementation

Future<List<DecodedMessage>> listBatchMessages(
  Iterable<Conversation> conversations, {
  Iterable<Pagination>? paginations,
  DateTime? start,
  DateTime? end,
  int? limit,
  xmtp.SortDirection sort = xmtp.SortDirection.SORT_DIRECTION_DESCENDING,
}) =>
    _conversations.listMessages(
      conversations,
      paginations: paginations,
      start: start,
      end: end,
      limit: limit,
      sort: sort,
    );