Renew session if message decryption fails with ProtocolInvalidMessageException

This commit is contained in:
AsamK 2021-05-05 20:20:02 +02:00
parent b7f05a1c80
commit 1bd60eea81
3 changed files with 57 additions and 1 deletions

View file

@ -84,7 +84,7 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
}
}
if (content == null) {
writer.println("Failed to decrypt message.");
writer.println("No message content");
} else {
writer.println("Sender: {} (device: {})",
formatContact(content.getSender()),