mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +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 {
|
||||
final var oneTimePreKeys = generatePreKeys(serviceIdType);
|
||||
final var identityKeyPair = account.getIdentityKeyPair(serviceIdType);
|
||||
if (identityKeyPair == null) {
|
||||
return;
|
||||
}
|
||||
final var oneTimePreKeys = generatePreKeys(serviceIdType);
|
||||
final var signedPreKeyRecord = generateSignedPreKey(serviceIdType, identityKeyPair);
|
||||
|
||||
dependencies.getAccountManager()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue