From 3c2504418d1602cfc6d68e75b3d8138b7faa90d8 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 5 Jun 2019 14:56:10 +1000 Subject: [PATCH] Add missing registration logic --- src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt | 1 + src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt b/src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt index 4d5af4794c..c9cbab0f0e 100644 --- a/src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt @@ -22,5 +22,6 @@ class AccountDetailsActivity : BaseActionBarActivity() { return nameEditText.input.setError("Too Long") } startActivity(Intent(this, KeyPairActivity::class.java)) + finish() } } \ No newline at end of file diff --git a/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt b/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt index 4bf03da6a5..1937457399 100644 --- a/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt @@ -79,7 +79,9 @@ class KeyPairActivity : BaseActionBarActivity() { IdentityDatabase.VerifiedStatus.VERIFIED, true, System.currentTimeMillis(), true) TextSecurePreferences.setLocalNumber(this, hexEncodedPublicKey) TextSecurePreferences.setProfileName(this, "User McUserFace") // TODO: For debugging purposes + TextSecurePreferences.setPromptedPushRegistration(this, true) startActivity(Intent(this, ConversationListActivity::class.java)) + finish() } // endregion } \ No newline at end of file