Fix storage sync validation error when re-registering with a new number.
This commit is contained in:
parent
cfd69f2da8
commit
64a841487f
1 changed files with 3 additions and 0 deletions
|
@ -360,6 +360,9 @@ 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()) {
|
||||
Log.w(TAG, "[Remote Sync] Remote version was older. User might have switched accounts. Making our version match.");
|
||||
TextSecurePreferences.setStorageManifestVersion(context, remoteManifestVersion);
|
||||
}
|
||||
|
||||
localManifestVersion = TextSecurePreferences.getStorageManifestVersion(context);
|
||||
|
|
Loading…
Add table
Reference in a new issue