Skip to content

Commit

Permalink
Fix up routing activity actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
moxie0 committed Oct 20, 2014
1 parent 5fcc135 commit 20cf775
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/org/thoughtcrime/securesms/RoutingActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,12 @@ private void handleDisplayConversationOrList() {
final ConversationParameters parameters = getConversationParameters();
final Intent intent;

scheduleRefreshActions();

if (isShareAction()) intent = getShareIntent(parameters);
else if (parameters.recipients != null) intent = getConversationIntent(parameters);
else intent = getConversationListIntent();

if (TextSecurePreferences.isPushRegistered(this) &&
!TextSecurePreferences.isSignedPreKeyRegistered(this))
{
PreKeyService.initiateCreateSigned(this, masterSecret);
}

startActivity(intent);
finish();
}
Expand Down Expand Up @@ -185,6 +180,12 @@ private void scheduleRefreshActions() {
Intent intent = new Intent(this, GcmRegistrationService.class);
startService(intent);
}

if (TextSecurePreferences.isPushRegistered(this) &&
!TextSecurePreferences.isSignedPreKeyRegistered(this))
{
PreKeyService.initiateCreateSigned(this, masterSecret);
}
}

private int getApplicationState() {
Expand Down

0 comments on commit 20cf775

Please sign in to comment.