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
Don't decrypt redacted messages (#2143)
This commit is contained in:
@@ -679,7 +679,12 @@ export class MatrixEvent extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public shouldAttemptDecryption() {
|
public shouldAttemptDecryption() {
|
||||||
return this.isEncrypted() && !this.isBeingDecrypted() && !this.clearEvent;
|
if (this.isRedacted()) return false;
|
||||||
|
if (this.isBeingDecrypted()) return false;
|
||||||
|
if (this.clearEvent) return false;
|
||||||
|
if (!this.isEncrypted()) return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user