diff --git a/src/matrix/e2ee/RoomEncryption.js b/src/matrix/e2ee/RoomEncryption.js index 3538381f..c8f993e5 100644 --- a/src/matrix/e2ee/RoomEncryption.js +++ b/src/matrix/e2ee/RoomEncryption.js @@ -56,6 +56,9 @@ export class RoomEncryption { } async decrypt(event, isSync, isTimelineOpen, retryData, txn) { + if (event.redacted_because || event.unsigned?.redacted_because) { + return; + } if (event.content?.algorithm !== MEGOLM_ALGORITHM) { throw new Error("Unsupported algorithm: " + event.content?.algorithm); }