From dc84ec5a6dc0d14f3ce9a34d0d3413ae8a5b4c1d Mon Sep 17 00:00:00 2001 From: Catalan Lover <48515417+FSG-Cat@users.noreply.github.com> Date: Fri, 11 Apr 2025 13:55:15 +0200 Subject: [PATCH] Make MessageIsMediaProtection correctly check for noop (#807) This PR fixes the temporary problem while we can fix the actual problem by reworking this whole idea of noop. Fixes #808 --- src/protections/MessageIsMedia.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protections/MessageIsMedia.ts b/src/protections/MessageIsMedia.ts index 265ea4d6..fd8f44d8 100644 --- a/src/protections/MessageIsMedia.ts +++ b/src/protections/MessageIsMedia.ts @@ -110,7 +110,7 @@ export class MessageIsMediaProtection `Redacting event from ${event["sender"]} for posting an image/video. ${Permalinks.forEvent(roomID, event["event_id"], [userServerName(this.draupnir.clientUserID)])}` ); // Redact the event - if (this.draupnir.config.noop) { + if (!this.draupnir.config.noop) { await this.eventConsequences.consequenceForEvent( roomID, event["event_id"],