feat: Attempt to detect already decrypted messages

This commit is contained in:
2022-10-02 17:03:39 +02:00
parent 2aa3674c4b
commit 0826d043d5
3 changed files with 15 additions and 1 deletions

View File

@@ -730,7 +730,9 @@ void main() {
msg.encryptedKeys,
);
expect(true, false);
} catch (_) {
} on MessageAlreadyDecryptedException catch (_) {
errorCounter++;
} on InvalidKeyExchangeException catch (_) {
errorCounter++;
}
}