From d182fd6bb74507a68351424d4e6d032ee95d59c7 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 16 May 2017 14:12:29 +0100 Subject: [PATCH] can't redact queued/not_sent Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/models/room-state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/room-state.js b/src/models/room-state.js index 061217d16..c9b34a19c 100644 --- a/src/models/room-state.js +++ b/src/models/room-state.js @@ -257,7 +257,7 @@ RoomState.prototype.maySendRedactionForEvent = function(mxEvent, userId) { const member = this.getMember(userId); if (!member || member.membership === 'leave') return false; - if (mxEvent.isRedacted()) return false; + if (mxEvent.status || mxEvent.isRedacted()) return false; if (mxEvent.getSender() === userId) return true; return this._hasSufficientPowerLevelFor('redact', userId);