Skip to content

Commit

Permalink
Fix lazy load of conversation class (#305)
Browse files Browse the repository at this point in the history
* fix the lazy load of conversations

* bump the pod
  • Loading branch information
nplasterer authored Apr 3, 2024
1 parent 7e82d98 commit 0a625c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sources/XMTPiOS/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public final class Client {
)

let client = try Client(address: account.address, privateKeyBundleV1: privateKeyBundleV1, apiClient: apiClient, v3Client: v3Client, dbPath: dbPath, installationID: v3Client?.installationId().toHex ?? "")
client.conversations
try await client.ensureUserContactPublished()

for codec in (options?.codecs ?? []) {
Expand Down Expand Up @@ -281,7 +282,7 @@ public final class Client {
)

let result = try Client(address: address, privateKeyBundleV1: v1Bundle, apiClient: apiClient, v3Client: v3Client, dbPath: dbPath, installationID: v3Client?.installationId().toHex ?? "")

result.conversations
for codec in options.codecs {
result.register(codec: codec)
}
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.9.4"
spec.version = "0.9.5"
spec.summary = "XMTP SDK Cocoapod"

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 0a625c9

Please sign in to comment.