From 66010f47559f9348507d9271387431c3f56c492e Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 11 Jun 2019 13:41:16 +1000 Subject: [PATCH] Fix pre key refreshing & add TODO --- src/org/thoughtcrime/securesms/jobs/RefreshPreKeysJob.java | 2 -- src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/jobs/RefreshPreKeysJob.java b/src/org/thoughtcrime/securesms/jobs/RefreshPreKeysJob.java index 901b607252..3ad622647b 100644 --- a/src/org/thoughtcrime/securesms/jobs/RefreshPreKeysJob.java +++ b/src/org/thoughtcrime/securesms/jobs/RefreshPreKeysJob.java @@ -54,8 +54,6 @@ public class RefreshPreKeysJob extends BaseJob implements InjectableType { @Override public void onRun() throws IOException { - if (!TextSecurePreferences.isPushRegistered(context)) return; - if (TextSecurePreferences.isSignedPreKeyRegistered(context)) { Log.i(TAG, "Already have a signed pre key registered."); return; diff --git a/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt b/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt index 8c27232126..dbc56ec1c5 100644 --- a/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/KeyPairActivity.kt @@ -93,6 +93,9 @@ class KeyPairActivity : BaseActionBarActivity() { IdentityDatabase.VerifiedStatus.VERIFIED, true, System.currentTimeMillis(), true) TextSecurePreferences.setLocalNumber(this, hexEncodedPublicKey) TextSecurePreferences.setPromptedPushRegistration(this, true) + + // TODO: Configure P2P API + startActivity(Intent(this, ConversationListActivity::class.java)) finish() }