Fix migration crash if user is unregistered.

This commit is contained in:
Greyson Parrelli
2023-05-09 11:26:00 -04:00
committed by Cody Henthorne
parent e46564cb7e
commit 41fc4096e4
2 changed files with 10 additions and 0 deletions

View File

@@ -29,6 +29,11 @@ internal class AccountConsistencyMigrationJob(
return
}
if (!SignalStore.account().isRegistered || SignalStore.account().aci == null) {
Log.i(TAG, "Not yet registered, skipping.")
return
}
ApplicationDependencies.getJobManager().add(AccountConsistencyWorkerJob())
}