Restore storage manifest version during StorageAccountRestoreJob.
This commit is contained in:
parent
35ab2f6704
commit
daeeb17142
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@ import org.thoughtcrime.securesms.jobmanager.impl.NetworkConstraint;
|
||||||
import org.thoughtcrime.securesms.keyvalue.SignalStore;
|
import org.thoughtcrime.securesms.keyvalue.SignalStore;
|
||||||
import org.thoughtcrime.securesms.recipients.Recipient;
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
||||||
import org.thoughtcrime.securesms.storage.StorageSyncHelper;
|
import org.thoughtcrime.securesms.storage.StorageSyncHelper;
|
||||||
|
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||||
import org.whispersystems.libsignal.util.guava.Optional;
|
import org.whispersystems.libsignal.util.guava.Optional;
|
||||||
import org.whispersystems.signalservice.api.SignalServiceAccountManager;
|
import org.whispersystems.signalservice.api.SignalServiceAccountManager;
|
||||||
import org.whispersystems.signalservice.api.push.exceptions.PushNetworkException;
|
import org.whispersystems.signalservice.api.push.exceptions.PushNetworkException;
|
||||||
|
@ -75,6 +76,9 @@ public class StorageAccountRestoreJob extends BaseJob {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log.i(TAG, "Updating local manifest version to: " + manifest.get().getVersion());
|
||||||
|
TextSecurePreferences.setStorageManifestVersion(context, manifest.get().getVersion());
|
||||||
|
|
||||||
Optional<StorageId> accountId = manifest.get().getAccountStorageId();
|
Optional<StorageId> accountId = manifest.get().getAccountStorageId();
|
||||||
|
|
||||||
if (!accountId.isPresent()) {
|
if (!accountId.isPresent()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue