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
This commit is contained in:
Catalan Lover authored and GitHub committed 2025-04-11 12:55:15 +01:00
1 parent 4bb8da51dd
commit dc84ec5a6d
1 file changed
+1 -1
+1 -1
View File
@@ -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"],