diff --git a/common/redaction.go b/common/redaction.go index 6ddd54edc..6d7133a86 100644 --- a/common/redaction.go +++ b/common/redaction.go @@ -24,16 +24,6 @@ func ValidateRedaction( return true, false, nil } - // Don't allow an event to redact itself - if redaction.Redacts() == redaction.EventID() { - return true, false, nil - } - - // Don't allow two events to redact each other - if redacted.Redacts() == redaction.EventID() { - return true, false, nil - } - var expectedDomain, redactorDomain gomatrixserverlib.ServerName if _, expectedDomain, err = gomatrixserverlib.SplitID( '@', redacted.Sender(),