diff --git a/src/org/thoughtcrime/securesms/RegistrationActivity.java b/src/org/thoughtcrime/securesms/RegistrationActivity.java index fd435d860c..0e289178c3 100644 --- a/src/org/thoughtcrime/securesms/RegistrationActivity.java +++ b/src/org/thoughtcrime/securesms/RegistrationActivity.java @@ -160,8 +160,6 @@ public class RegistrationActivity extends BaseActionBarActivity { public void onClick(View v) { final RegistrationActivity self = RegistrationActivity.this; - TextSecurePreferences.setPromptedPushRegistration(self, true); - if (TextUtils.isEmpty(countryCode.getText())) { Toast.makeText(self, getString(R.string.RegistrationActivity_you_must_specify_your_country_code), diff --git a/src/org/thoughtcrime/securesms/service/RegistrationService.java b/src/org/thoughtcrime/securesms/service/RegistrationService.java index b1fd67ee50..9650958c44 100644 --- a/src/org/thoughtcrime/securesms/service/RegistrationService.java +++ b/src/org/thoughtcrime/securesms/service/RegistrationService.java @@ -292,6 +292,7 @@ public class RegistrationService extends Service { TextSecurePreferences.setPushServerPassword(this, password); TextSecurePreferences.setSignalingKey(this, signalingKey); TextSecurePreferences.setSignedPreKeyRegistered(this, true); + TextSecurePreferences.setPromptedPushRegistration(this, true); } private void setState(RegistrationState state) {