mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +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 -> {
|
StorageServiceRepository.WriteStorageRecordsResult.Success -> {
|
||||||
Log.i(TAG, "Successfully rotated the manifest as version ${manifestWithNewVersion.version}.${manifestWithNewVersion.sourceDeviceId}. Clearing restore key.")
|
Log.i(TAG, "Successfully rotated the manifest as version ${manifestWithNewVersion.version}.${manifestWithNewVersion.sourceDeviceId}. Clearing restore key.")
|
||||||
SignalStore.svr.masterKeyForInitialDataRestore = null
|
SignalStore.svr.masterKeyForInitialDataRestore = null
|
||||||
|
|
||||||
|
Log.i(TAG, "Saved new manifest. Now at version: ${manifestWithNewVersion.versionString}")
|
||||||
|
SignalStore.storageService.manifest = manifestWithNewVersion
|
||||||
|
|
||||||
Result.success()
|
Result.success()
|
||||||
}
|
}
|
||||||
StorageServiceRepository.WriteStorageRecordsResult.ConflictError -> {
|
StorageServiceRepository.WriteStorageRecordsResult.ConflictError -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user