Add missing registration logic

This commit is contained in:
Niels Andriesse 2019-06-05 14:56:10 +10:00
parent 3609517ff0
commit 3c2504418d
2 changed files with 3 additions and 0 deletions

View File

@ -22,5 +22,6 @@ class AccountDetailsActivity : BaseActionBarActivity() {
return nameEditText.input.setError("Too Long") return nameEditText.input.setError("Too Long")
} }
startActivity(Intent(this, KeyPairActivity::class.java)) startActivity(Intent(this, KeyPairActivity::class.java))
finish()
} }
} }

View File

@ -79,7 +79,9 @@ class KeyPairActivity : BaseActionBarActivity() {
IdentityDatabase.VerifiedStatus.VERIFIED, true, System.currentTimeMillis(), true) IdentityDatabase.VerifiedStatus.VERIFIED, true, System.currentTimeMillis(), true)
TextSecurePreferences.setLocalNumber(this, hexEncodedPublicKey) TextSecurePreferences.setLocalNumber(this, hexEncodedPublicKey)
TextSecurePreferences.setProfileName(this, "User McUserFace") // TODO: For debugging purposes TextSecurePreferences.setProfileName(this, "User McUserFace") // TODO: For debugging purposes
TextSecurePreferences.setPromptedPushRegistration(this, true)
startActivity(Intent(this, ConversationListActivity::class.java)) startActivity(Intent(this, ConversationListActivity::class.java))
finish()
} }
// endregion // endregion
} }