Refresh pre keys after receiving a sync message with PNI identity

This commit is contained in:
AsamK 2022-05-23 17:43:55 +02:00
parent ce7aeb02bc
commit ad65eb7ea2

View file

@ -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;
} }