Always get the storage manifest for internal users.
This will hopefully help us track down some of the validation issues when writing local changes.
This commit is contained in:
parent
281630e751
commit
b4d0dde129
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ public class StorageSyncJobV2 extends BaseJob {
|
|||
boolean needsMultiDeviceSync = false;
|
||||
boolean needsForcePush = false;
|
||||
long localManifestVersion = TextSecurePreferences.getStorageManifestVersion(context);
|
||||
Optional<SignalStorageManifest> remoteManifest = accountManager.getStorageManifestIfDifferentVersion(storageServiceKey, localManifestVersion);
|
||||
Optional<SignalStorageManifest> remoteManifest = FeatureFlags.internalUser() ? accountManager.getStorageManifest(storageServiceKey) : accountManager.getStorageManifestIfDifferentVersion(storageServiceKey, localManifestVersion);
|
||||
long remoteManifestVersion = remoteManifest.transform(SignalStorageManifest::getVersion).or(localManifestVersion);
|
||||
|
||||
stopwatch.split("remote-manifest");
|
||||
|
@ -347,7 +347,7 @@ public class StorageSyncJobV2 extends BaseJob {
|
|||
Log.i(TAG, "[Remote Sync] Updating local manifest version to: " + remoteManifest.get().getVersion());
|
||||
TextSecurePreferences.setStorageManifestVersion(context, remoteManifest.get().getVersion());
|
||||
}
|
||||
} else if (remoteManifest.isPresent()) {
|
||||
} else if (remoteManifest.isPresent() && remoteManifestVersion < localManifestVersion) {
|
||||
Log.w(TAG, "[Remote Sync] Remote version was older. User might have switched accounts. Making our version match.");
|
||||
TextSecurePreferences.setStorageManifestVersion(context, remoteManifestVersion);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue