mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Refresh prekeys when receiving message with invalid key id
This commit is contained in:
parent
14b07be0dc
commit
adb6787d5b
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ public final class IncomingMessageHandler {
|
|||
} catch (ProtocolInvalidKeyIdException | ProtocolInvalidKeyException | ProtocolNoSessionException |
|
||||
ProtocolInvalidMessageException e) {
|
||||
logger.debug("Failed to decrypt incoming message", e);
|
||||
if (e instanceof ProtocolInvalidKeyIdException) {
|
||||
actions.add(RefreshPreKeysAction.create());
|
||||
}
|
||||
final var sender = account.getRecipientResolver().resolveRecipient(e.getSender());
|
||||
if (context.getContactHelper().isContactBlocked(sender)) {
|
||||
logger.debug("Received invalid message from blocked contact, ignoring.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue