mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-18 07:47:47 +01:00
Drop legacy field from provisioning and sync messages.
This commit is contained in:
committed by
Alex Hart
parent
4ce2c6ef73
commit
5ae51f844e
@@ -1749,10 +1749,6 @@ public class SignalServiceMessageSender {
|
||||
SyncMessage.Builder syncMessage = createSyncMessageBuilder();
|
||||
SyncMessage.Keys.Builder builder = new SyncMessage.Keys.Builder();
|
||||
|
||||
if (keysMessage.getMaster() != null) {
|
||||
builder.master(ByteString.of(keysMessage.getMaster().serialize()));
|
||||
}
|
||||
|
||||
if (keysMessage.getAccountEntropyPool() != null) {
|
||||
builder.accountEntropyPool(keysMessage.getAccountEntropyPool().getValue());
|
||||
}
|
||||
|
||||
@@ -120,7 +120,6 @@ class LinkDeviceApi(
|
||||
userAgent = null,
|
||||
profileKey = profileKey.serialize().toByteString(),
|
||||
provisioningVersion = ProvisioningVersion.CURRENT.value,
|
||||
masterKey = masterKey.serialize().toByteString(),
|
||||
ephemeralBackupKey = ephemeralMessageBackupKey?.value?.toByteString(),
|
||||
accountEntropyPool = accountEntropyPool.value,
|
||||
mediaRootBackupKey = mediaRootBackupKey.value.toByteString(),
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
package org.whispersystems.signalservice.api.messages.multidevice
|
||||
|
||||
import org.signal.core.models.AccountEntropyPool
|
||||
import org.signal.core.models.MasterKey
|
||||
import org.signal.core.models.backup.MediaRootBackupKey
|
||||
import org.signal.core.models.storageservice.StorageKey
|
||||
|
||||
data class KeysMessage(
|
||||
val storageService: StorageKey?,
|
||||
val master: MasterKey?,
|
||||
val accountEntropyPool: AccountEntropyPool?,
|
||||
val mediaRootBackupKey: MediaRootBackupKey?
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ message ProvisionMessage {
|
||||
optional bytes profileKey = 6;
|
||||
optional bool readReceipts = 7;
|
||||
optional uint32 provisioningVersion = 9;
|
||||
optional bytes masterKey = 13; // Deprecated, but required by linked devices
|
||||
reserved /*masterKey*/ 13; // Deprecated in favor of accountEntropyPool
|
||||
optional bytes ephemeralBackupKey = 14; // 32 bytes
|
||||
optional string accountEntropyPool = 15;
|
||||
optional bytes mediaRootBackupKey = 16; // 32-bytes
|
||||
|
||||
@@ -588,7 +588,7 @@ message SyncMessage {
|
||||
|
||||
message Keys {
|
||||
reserved /* storageService */ 1;
|
||||
optional bytes master = 2; // deprecated: this field will be removed in a future release.
|
||||
reserved /* master */ 2;
|
||||
optional string accountEntropyPool = 3;
|
||||
optional bytes mediaRootBackupKey = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user