mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-22 17:11:17 +00:00
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:
1 parent
4bb8da51dd
commit
dc84ec5a6d
1 file changed
+1
-1
@@ -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"],
|
||||
|
||||
Reference in new issue
Block a user