diff --git a/src/models/event.js b/src/models/event.js index f7ac2430e..37ed0d3e8 100644 --- a/src/models/event.js +++ b/src/models/event.js @@ -1004,6 +1004,11 @@ utils.extend(module.exports.MatrixEvent.prototype, { room_id: this.getRoomId(), }; + // if this is a redaction then attach the redacts key + if (this.isRedaction()) { + event.redacts = this.event.redacts; + } + if (!this.isEncrypted()) { return event; }