mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
dont attempt to decrypt redacted events
this will show them as undecryptable for now though
This commit is contained in:
parent
773cb3420f
commit
36a8ec0110
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user