Only generate a PNI key if necessary.

This commit is contained in:
Greyson Parrelli
2022-02-23 12:10:22 -05:00
parent ba08dbef5f
commit 653410cf27
4 changed files with 10 additions and 8 deletions

View File

@@ -291,7 +291,7 @@ public class ApplicationDependencyProvider implements ApplicationDependencies.Pr
}
if (!SignalStore.account().hasPniIdentityKey()) {
SignalStore.account().generatePniIdentityKey();
SignalStore.account().generatePniIdentityKeyIfNecessary();
CreateSignedPreKeyJob.enqueueIfNeeded();
}