From 20cf775b1e98d86509c6641d4293db37de7e0738 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 20 Oct 2014 14:55:34 -0700 Subject: [PATCH] Fix up routing activity actions. --- src/org/thoughtcrime/securesms/RoutingActivity.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/org/thoughtcrime/securesms/RoutingActivity.java b/src/org/thoughtcrime/securesms/RoutingActivity.java index b4001e1133..b2e04f270a 100644 --- a/src/org/thoughtcrime/securesms/RoutingActivity.java +++ b/src/org/thoughtcrime/securesms/RoutingActivity.java @@ -122,17 +122,12 @@ public class RoutingActivity extends PassphraseRequiredSherlockActivity { 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(); } @@ -185,6 +180,12 @@ public class RoutingActivity extends PassphraseRequiredSherlockActivity { Intent intent = new Intent(this, GcmRegistrationService.class); startService(intent); } + + if (TextSecurePreferences.isPushRegistered(this) && + !TextSecurePreferences.isSignedPreKeyRegistered(this)) + { + PreKeyService.initiateCreateSigned(this, masterSecret); + } } private int getApplicationState() {