From 28059f0a9a7a8b63adeb4d8c160d4136a160578a Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Thu, 22 Feb 2024 07:07:45 -0800 Subject: [PATCH] Fix Group messages pagination (#262) * fix timestamps of pagination doing ms instead of ns * bump the pod spec --- Sources/XMTPiOS/Group.swift | 8 ++++---- XMTP.podspec | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/XMTPiOS/Group.swift b/Sources/XMTPiOS/Group.swift index e0af35d7..4ee5a601 100644 --- a/Sources/XMTPiOS/Group.swift +++ b/Sources/XMTPiOS/Group.swift @@ -186,11 +186,11 @@ public struct Group: Identifiable, Equatable, Hashable { var options = FfiListMessagesOptions(sentBeforeNs: nil, sentAfterNs: nil, limit: nil) if let before { - options.sentBeforeNs = Int64(before.millisecondsSinceEpoch) + options.sentBeforeNs = Int64(before.millisecondsSinceEpoch * 1_000_000) } if let after { - options.sentAfterNs = Int64(after.millisecondsSinceEpoch) + options.sentAfterNs = Int64(after.millisecondsSinceEpoch * 1_000_000) } if let limit { @@ -213,11 +213,11 @@ public struct Group: Identifiable, Equatable, Hashable { var options = FfiListMessagesOptions(sentBeforeNs: nil, sentAfterNs: nil, limit: nil) if let before { - options.sentBeforeNs = Int64(before.millisecondsSinceEpoch) + options.sentBeforeNs = Int64(before.millisecondsSinceEpoch * 1_000_000) } if let after { - options.sentAfterNs = Int64(after.millisecondsSinceEpoch) + options.sentAfterNs = Int64(after.millisecondsSinceEpoch * 1_000_000) } if let limit { diff --git a/XMTP.podspec b/XMTP.podspec index 2ef64b0b..415352db 100644 --- a/XMTP.podspec +++ b/XMTP.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |spec| # spec.name = "XMTP" - spec.version = "0.8.11" + spec.version = "0.8.12" spec.summary = "XMTP SDK Cocoapod" # This description is used to generate tags and improve search results.