mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 05:03:39 +00:00
Fix pre key refreshing & add TODO
This commit is contained in:
parent
c47be74f0d
commit
66010f4755
@ -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;
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user