mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Only generate prekeys if the corresponding identity key exists
This commit is contained in:
parent
5b1c6c0d64
commit
ce7aeb02bc
1 changed files with 1 additions and 1 deletions
|
@ -45,11 +45,11 @@ public class PreKeyHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void refreshPreKeys(ServiceIdType serviceIdType) throws IOException {
|
public void refreshPreKeys(ServiceIdType serviceIdType) throws IOException {
|
||||||
final var oneTimePreKeys = generatePreKeys(serviceIdType);
|
|
||||||
final var identityKeyPair = account.getIdentityKeyPair(serviceIdType);
|
final var identityKeyPair = account.getIdentityKeyPair(serviceIdType);
|
||||||
if (identityKeyPair == null) {
|
if (identityKeyPair == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
final var oneTimePreKeys = generatePreKeys(serviceIdType);
|
||||||
final var signedPreKeyRecord = generateSignedPreKey(serviceIdType, identityKeyPair);
|
final var signedPreKeyRecord = generateSignedPreKey(serviceIdType, identityKeyPair);
|
||||||
|
|
||||||
dependencies.getAccountManager()
|
dependencies.getAccountManager()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue