You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Fix reattempting decryption check
This commit is contained in:
@@ -534,7 +534,7 @@ export class MatrixEvent extends EventEmitter {
|
||||
throw new Error("Attempt to decrypt event which isn't encrypted");
|
||||
}
|
||||
|
||||
if (this.clearEvent?.content && this.clearEvent.content.msgtype !== "m.bad.encrypted") {
|
||||
if (this.clearEvent && !this.isDecryptionFailure()) {
|
||||
// we may want to just ignore this? let's start with rejecting it.
|
||||
throw new Error(
|
||||
"Attempt to decrypt event which has already been decrypted",
|
||||
|
||||
Reference in New Issue
Block a user