Skip to content

Commit

Permalink
Fix Group messages pagination (#262)
Browse files Browse the repository at this point in the history
* fix timestamps of pagination doing ms instead of ns

* bump the pod spec
  • Loading branch information
nplasterer authored Feb 22, 2024
1 parent 0b18fff commit a3f8178
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Sources/XMTPiOS/Group.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion XMTP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a3f8178

Please sign in to comment.