Fix post-registration restore bug.

This commit is contained in:
Cody Henthorne
2024-10-09 16:15:37 -04:00
committed by Greyson Parrelli
parent 7cc425fa7b
commit 58a48e38eb

View File

@@ -824,9 +824,7 @@ class RegistrationViewModel : ViewModel() {
if (reglockEnabled) {
SignalStore.onboarding.clearAll()
}
if (reglockEnabled || SignalStore.storageService.lastSyncTime == 0L) {
val stopwatch = Stopwatch("post-reg-storage-service")
AppDependencies.jobManager.runSynchronously(StorageAccountRestoreJob(), StorageAccountRestoreJob.LIFESPAN)