Skip to content

Commit

Permalink
small tweak to message listing
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 23, 2024
1 parent e704cea commit 39e52ef
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Sources/XMTPiOS/Group.swift
Original file line number Diff line number Diff line change
Expand Up @@ -473,15 +473,8 @@ public struct Group: Identifiable, Equatable, Hashable {

options.direction = direction

let messages = try ffiGroup.findMessages(opts: options).compactMap { ffiMessage in
return try ffiGroup.findMessages(opts: options).compactMap { ffiMessage in
return MessageV3(client: self.client, ffiMessage: ffiMessage).decryptOrNull()
}

switch direction {
case .ascending:
return messages
default:
return messages.reversed()
}
}
}

0 comments on commit 39e52ef

Please sign in to comment.