From ad65eb7ea238a8669ff38e6d32509654ef833b0e Mon Sep 17 00:00:00 2001 From: AsamK Date: Mon, 23 May 2022 17:43:55 +0200 Subject: [PATCH] Refresh pre keys after receiving a sync message with PNI identity --- .../org/asamk/signal/manager/helper/IncomingMessageHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java b/lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java index b28c21e6..648e10ef 100644 --- a/lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java +++ b/lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java @@ -460,6 +460,7 @@ public final class IncomingMessageHandler { final var pniIdentity = syncMessage.getPniIdentity().get(); account.setPniIdentityKeyPair(KeyUtils.getIdentityKeyPair(pniIdentity.getPublicKey().toByteArray(), pniIdentity.getPrivateKey().toByteArray())); + actions.add(RefreshPreKeysAction.create()); } return actions; }