mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Ensure new manifest is saved after rotation.
This commit is contained in:
@@ -90,6 +90,10 @@ class StorageRotateManifestJob private constructor(parameters: Parameters) : Job
|
||||
StorageServiceRepository.WriteStorageRecordsResult.Success -> {
|
||||
Log.i(TAG, "Successfully rotated the manifest as version ${manifestWithNewVersion.version}.${manifestWithNewVersion.sourceDeviceId}. Clearing restore key.")
|
||||
SignalStore.svr.masterKeyForInitialDataRestore = null
|
||||
|
||||
Log.i(TAG, "Saved new manifest. Now at version: ${manifestWithNewVersion.versionString}")
|
||||
SignalStore.storageService.manifest = manifestWithNewVersion
|
||||
|
||||
Result.success()
|
||||
}
|
||||
StorageServiceRepository.WriteStorageRecordsResult.ConflictError -> {
|
||||
|
||||
Reference in New Issue
Block a user