Skip to content

Commit

Permalink
fix up code
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Jun 2, 2023
1 parent ccbf23c commit c881ac5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ class XMTPModule : Module() {
val beforeDate = if (before != null) Date(before) else null
val afterDate = if (after != null) Date(after) else null

client.conversations.listBatchMessages(topics, limit, beforeDate, afterDate).flatMap {
it.messages(limit = limit, before = beforeDate, after = afterDate)
.map { DecodedMessageWrapper.encode(it) }
client.conversations.listBatchMessages(topics, limit, beforeDate, afterDate).map {
DecodedMessageWrapper.encode(it)
}
}

Expand Down

0 comments on commit c881ac5

Please sign in to comment.