mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Refresh pre keys after receiving a sync message with PNI identity
This commit is contained in:
parent
ce7aeb02bc
commit
ad65eb7ea2
1 changed files with 1 additions and 0 deletions
|
@ -460,6 +460,7 @@ public final class IncomingMessageHandler {
|
||||||
final var pniIdentity = syncMessage.getPniIdentity().get();
|
final var pniIdentity = syncMessage.getPniIdentity().get();
|
||||||
account.setPniIdentityKeyPair(KeyUtils.getIdentityKeyPair(pniIdentity.getPublicKey().toByteArray(),
|
account.setPniIdentityKeyPair(KeyUtils.getIdentityKeyPair(pniIdentity.getPublicKey().toByteArray(),
|
||||||
pniIdentity.getPrivateKey().toByteArray()));
|
pniIdentity.getPrivateKey().toByteArray()));
|
||||||
|
actions.add(RefreshPreKeysAction.create());
|
||||||
}
|
}
|
||||||
return actions;
|
return actions;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue