Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consent performance improvements #365

Merged
merged 3 commits into from
Apr 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix up access to consent entries
  • Loading branch information
nplasterer committed Apr 18, 2024
commit b2e68badb665c7690d9868ef63f6e4ded8b98279
4 changes: 2 additions & 2 deletions ios/XMTPModule.swift
Original file line number Diff line number Diff line change
@@ -580,7 +580,7 @@ public class XMTPModule: Module {
}
let consentList = try await client.contacts.refreshConsentList()

return try consentList.entries.compactMap { entry in
return try await consentList.entriesManager.map.compactMap { entry in
try ConsentWrapper.encode(entry.value)
}
}
@@ -596,7 +596,7 @@ public class XMTPModule: Module {
guard let client = await clientsManager.getClient(key: clientAddress) else {
throw Error.noClient
}
let entries = await client.contacts.consentList.entries
let entries = await client.contacts.consentList.entriesManager.map

return try entries.compactMap { entry in
try ConsentWrapper.encode(entry.value)
Loading