Add mismatch for signed pre-key; remove mismatch for migration version

This commit is contained in:
Chris Eager
2021-05-25 16:27:41 -05:00
committed by Chris Eager
parent 623743286c
commit 5ee093f87c
2 changed files with 13 additions and 5 deletions

View File

@@ -460,6 +460,12 @@ public class AccountsManager {
}
try {
if (databaseAccount.getMasterDevice().isPresent() && dynamoAccount.getMasterDevice().isPresent()) {
if (!Objects.equals(databaseAccount.getMasterDevice().get().getSignedPreKey(), dynamoAccount.getMasterDevice().get().getSignedPreKey())) {
return Optional.of("masterDeviceSignedPreKey");
}
}
if (!serializedEquals(databaseAccount.getDevices(), dynamoAccount.getDevices())) {
return Optional.of("devices");
}
@@ -472,10 +478,6 @@ public class AccountsManager {
throw new RuntimeException(e);
}
if (databaseAccount.getDynamoDbMigrationVersion() != dynamoAccount.getDynamoDbMigrationVersion()) {
return Optional.of("migrationVersion");
}
return Optional.empty();
}