Refresh prekeys when receiving message with invalid key id
This commit is contained in:
parent
14b07be0dc
commit
adb6787d5b
@ -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…
x
Reference in New Issue
Block a user