From f871d83e68374b1d1cbd5f7bc682c1adbae701ea Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 16 Dec 2016 09:10:44 -0800 Subject: [PATCH] No need to run this job on install // FREEBIE --- .../thoughtcrime/securesms/jobs/CreateSignedPreKeyJob.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/thoughtcrime/securesms/jobs/CreateSignedPreKeyJob.java b/src/org/thoughtcrime/securesms/jobs/CreateSignedPreKeyJob.java index 424dce8bca..6bc0aeee72 100644 --- a/src/org/thoughtcrime/securesms/jobs/CreateSignedPreKeyJob.java +++ b/src/org/thoughtcrime/securesms/jobs/CreateSignedPreKeyJob.java @@ -47,6 +47,11 @@ public class CreateSignedPreKeyJob extends MasterSecretJob implements Injectable return; } + if (!TextSecurePreferences.isPushRegistered(context)) { + Log.w(TAG, "Not yet registered..."); + return; + } + IdentityKeyPair identityKeyPair = IdentityKeyUtil.getIdentityKeyPair(context); SignedPreKeyRecord signedPreKeyRecord = PreKeyUtil.generateSignedPreKey(context, identityKeyPair);