fixup! Do not run prekey jobs if you're not registered.

This commit is contained in:
Greyson Parrelli 2022-02-18 15:54:15 -05:00
parent c2830163b8
commit 719f5e28d0

View file

@ -58,7 +58,7 @@ public class PniAccountInitializationMigrationJob extends MigrationJob {
public void performMigration() throws IOException {
PNI pni = SignalStore.account().getPni();
if (!Recipient.self().isRegistered() || pni == null) {
if (pni == null || SignalStore.account().getAci() == null || !Recipient.self().isRegistered()) {
Log.w(TAG, "Not yet registered! No need to perform this migration.");
return;
}