From 4bc4e1b76f77b84b7ff480a5d0d58a6f657b1422 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 14 Jul 2021 10:22:36 -0600 Subject: [PATCH] remove useless code --- src/models/event.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/models/event.ts b/src/models/event.ts index f687a9a26..55d0bf583 100644 --- a/src/models/event.ts +++ b/src/models/event.ts @@ -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; }