mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 03:13:11 -06:00
Remove unnecessary sanity checks
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
2fb994ad1d
commit
e9f824b958
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue