Skip to content

Commit

Permalink
fix up access to consent entries
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Apr 18, 2024
1 parent a60c34a commit b2e68ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/XMTPModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand All @@ -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)
Expand Down

0 comments on commit b2e68ba

Please sign in to comment.