mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-25 11:34:24 +00:00
Fix pre key refreshing & add TODO
This commit is contained in:
parent
c47be74f0d
commit
66010f4755
src/org/thoughtcrime/securesms
@ -54,8 +54,6 @@ public class RefreshPreKeysJob extends BaseJob implements InjectableType {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRun() throws IOException {
|
public void onRun() throws IOException {
|
||||||
if (!TextSecurePreferences.isPushRegistered(context)) return;
|
|
||||||
|
|
||||||
if (TextSecurePreferences.isSignedPreKeyRegistered(context)) {
|
if (TextSecurePreferences.isSignedPreKeyRegistered(context)) {
|
||||||
Log.i(TAG, "Already have a signed pre key registered.");
|
Log.i(TAG, "Already have a signed pre key registered.");
|
||||||
return;
|
return;
|
||||||
|
@ -93,6 +93,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.setPromptedPushRegistration(this, true)
|
TextSecurePreferences.setPromptedPushRegistration(this, true)
|
||||||
|
|
||||||
|
// TODO: Configure P2P API
|
||||||
|
|
||||||
startActivity(Intent(this, ConversationListActivity::class.java))
|
startActivity(Intent(this, ConversationListActivity::class.java))
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user