Only create signed prekey if push registered.

This commit is contained in:
Moxie Marlinspike 2014-07-16 15:48:19 -07:00
parent 540592d71f
commit 3f299936bf

View File

@ -127,7 +127,9 @@ public class RoutingActivity extends PassphraseRequiredSherlockActivity {
else if (parameters.recipients != null) intent = getConversationIntent(parameters); else if (parameters.recipients != null) intent = getConversationIntent(parameters);
else intent = getConversationListIntent(); else intent = getConversationListIntent();
if (!TextSecurePreferences.isSignedPreKeyRegistered(this)) { if (TextSecurePreferences.isPushRegistered(this) &&
!TextSecurePreferences.isSignedPreKeyRegistered(this))
{
PreKeyService.initiateCreateSigned(this, masterSecret); PreKeyService.initiateCreateSigned(this, masterSecret);
} }