mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Include AEP in link device provisioning message.
This commit is contained in:
@@ -11,6 +11,7 @@ import org.signal.core.util.urlEncode
|
||||
import org.signal.libsignal.protocol.IdentityKeyPair
|
||||
import org.signal.libsignal.protocol.ecc.ECPublicKey
|
||||
import org.signal.libsignal.zkgroup.profiles.ProfileKey
|
||||
import org.whispersystems.signalservice.api.AccountEntropyPool
|
||||
import org.whispersystems.signalservice.api.NetworkResult
|
||||
import org.whispersystems.signalservice.api.backup.MediaRootBackupKey
|
||||
import org.whispersystems.signalservice.api.backup.MessageBackupKey
|
||||
@@ -100,6 +101,7 @@ class LinkDeviceApi(
|
||||
aciIdentityKeyPair: IdentityKeyPair,
|
||||
pniIdentityKeyPair: IdentityKeyPair,
|
||||
profileKey: ProfileKey,
|
||||
accountEntropyPool: AccountEntropyPool,
|
||||
masterKey: MasterKey,
|
||||
mediaRootBackupKey: MediaRootBackupKey,
|
||||
code: String,
|
||||
@@ -117,6 +119,7 @@ class LinkDeviceApi(
|
||||
profileKey = profileKey.serialize().toByteString(),
|
||||
provisioningCode = code,
|
||||
provisioningVersion = ProvisioningVersion.CURRENT.value,
|
||||
accountEntropyPool = accountEntropyPool.value,
|
||||
masterKey = masterKey.serialize().toByteString(),
|
||||
mediaRootBackupKey = mediaRootBackupKey.value.toByteString(),
|
||||
ephemeralBackupKey = ephemeralMessageBackupKey?.value?.toByteString()
|
||||
|
||||
Reference in New Issue
Block a user