From 3f299936bfe89be917191a3c9ab0b5af613ac7d2 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 16 Jul 2014 15:48:19 -0700 Subject: [PATCH] Only create signed prekey if push registered. --- src/org/thoughtcrime/securesms/RoutingActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/RoutingActivity.java b/src/org/thoughtcrime/securesms/RoutingActivity.java index fcccd35e59..b4001e1133 100644 --- a/src/org/thoughtcrime/securesms/RoutingActivity.java +++ b/src/org/thoughtcrime/securesms/RoutingActivity.java @@ -127,7 +127,9 @@ public class RoutingActivity extends PassphraseRequiredSherlockActivity { else if (parameters.recipients != null) intent = getConversationIntent(parameters); else intent = getConversationListIntent(); - if (!TextSecurePreferences.isSignedPreKeyRegistered(this)) { + if (TextSecurePreferences.isPushRegistered(this) && + !TextSecurePreferences.isSignedPreKeyRegistered(this)) + { PreKeyService.initiateCreateSigned(this, masterSecret); }