Skip to content

Commit

Permalink
Only create signed prekey if push registered.
Browse files Browse the repository at this point in the history
  • Loading branch information
moxie0 committed Oct 20, 2014
1 parent 540592d commit 3f29993
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/thoughtcrime/securesms/RoutingActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ private void handleDisplayConversationOrList() {
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);
}

Expand Down

0 comments on commit 3f29993

Please sign in to comment.