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

remove useless code

This commit is contained in:
Travis Ralston
2021-07-14 10:22:36 -06:00
parent 11dabf9a68
commit 4bc4e1b76f

View File

@@ -1242,11 +1242,6 @@ export class MatrixEvent extends EventEmitter {
public toJSON(): object {
const event = this.getEffectiveEvent();
// if this is a redaction then attach the redacts key
if (this.isRedaction()) {
event.redacts = this.event.redacts;
}
if (!this.isEncrypted()) {
return event;
}