Skip to content

Commit

Permalink
expose entries so we can get them in RN
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Dec 6, 2023
1 parent 14d9c60 commit c218322
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ class ConversationTest {
bobClient.contacts.refreshConsentList()

val isDenied = bobConversation.consentState() == ConsentState.DENIED
assertEquals(bobClient.contacts.consentList.entries.size, 1)
assertTrue(isDenied)

val aliceConversation = aliceClient.conversations.list()[0]
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/org/xmtp/android/library/Contacts.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ data class ConsentListEntry(
}

class ConsentList(val client: Client) {
private val entries: MutableMap<String, ConsentState> = mutableMapOf()
val entries: MutableMap<String, ConsentState> = mutableMapOf()
private val publicKey =
client.privateKeyBundleV1.identityKey.publicKey.secp256K1Uncompressed.bytes
private val privateKey = client.privateKeyBundleV1.identityKey.secp256K1.bytes
Expand Down

0 comments on commit c218322

Please sign in to comment.