Fix issue where we could enqueue unsatisfiable jobs during registration.

This commit is contained in:
Greyson Parrelli
2025-08-12 13:00:06 -04:00
parent b1feffa627
commit 2190a4a58d
2 changed files with 19 additions and 1 deletions

View File

@@ -878,7 +878,7 @@ class RegistrationViewModel : ViewModel() {
stopwatch.split("account-restore")
AppDependencies.jobManager
.startChain(StorageSyncJob.forRemoteChange())
.startChain(StorageSyncJob.forAccountRestore())
.then(ReclaimUsernameAndLinkJob())
.enqueueAndBlockUntilCompletion(TimeUnit.SECONDS.toMillis(10))
stopwatch.split("storage-sync")