Skip to content

Commit

Permalink
remove the nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Sep 16, 2024
1 parent 97ec51d commit adc267d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/src/main/java/org/xmtp/android/library/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ class Client() {

val encryptionKey = options.dbEncryptionKey
?: throw XMTPException("No encryption key passed for the database. Please store and provide a secure encryption key.")
val nonce = if (privateKeyBundleV1 != null) 0UL else Random.nextULong()

createClient(
logger = logger,
Expand All @@ -401,7 +400,7 @@ class Client() {
encryptionKey = encryptionKey,
accountAddress = accountAddress,
inboxId = inboxId,
nonce = nonce,
nonce = 0.toULong(),
legacySignedPrivateKeyProto = privateKeyBundleV1?.toV2()?.identityKey?.toByteArray(),
historySyncUrl = options.historySyncUrl
)
Expand Down

0 comments on commit adc267d

Please sign in to comment.