1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

Element-R: silence log errors when viewing a decryption failure (#3821)

This commit is contained in:
Richard van der Hoff
2023-10-23 11:16:42 +01:00
committed by GitHub
parent 6e2ac03f7e
commit 12e479a93e
2 changed files with 21 additions and 1 deletions

View File

@@ -1649,7 +1649,7 @@ class EventDecryptor {
}
public async getEncryptionInfoForEvent(event: MatrixEvent): Promise<EventEncryptionInfo | null> {
if (!event.getClearContent()) {
if (!event.getClearContent() || event.isDecryptionFailure()) {
// not successfully decrypted
return null;
}