mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 22:15:51 +00:00
Fix crash
This commit is contained in:
parent
90a8a36486
commit
2189729f45
@ -52,6 +52,8 @@ public class RotateSignedPreKeyJob extends BaseJob implements InjectableType {
|
|||||||
public void onRun() throws Exception {
|
public void onRun() throws Exception {
|
||||||
Log.i(TAG, "Rotating signed prekey...");
|
Log.i(TAG, "Rotating signed prekey...");
|
||||||
|
|
||||||
|
if (!IdentityKeyUtil.hasIdentityKey(context)) { return; }
|
||||||
|
|
||||||
IdentityKeyPair identityKey = IdentityKeyUtil.getIdentityKeyPair(context);
|
IdentityKeyPair identityKey = IdentityKeyUtil.getIdentityKeyPair(context);
|
||||||
SignedPreKeyRecord signedPreKeyRecord = PreKeyUtil.generateSignedPreKey(context, identityKey, false);
|
SignedPreKeyRecord signedPreKeyRecord = PreKeyUtil.generateSignedPreKey(context, identityKey, false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user