From 39e52ef67c12f5e80635c78ec077db995c9bd81d Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Wed, 23 Oct 2024 12:48:38 -0700 Subject: [PATCH] small tweak to message listing --- Sources/XMTPiOS/Group.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Sources/XMTPiOS/Group.swift b/Sources/XMTPiOS/Group.swift index 6f43cbc1..5c57cf9a 100644 --- a/Sources/XMTPiOS/Group.swift +++ b/Sources/XMTPiOS/Group.swift @@ -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() - } } }