diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-09-26 17:35:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 17:35:35 +0100 |
commit | f022fc1397fda984245ad1611531b37480cf4f46 (patch) | |
tree | 13283bd52bc4a6d33800c099b075b17fdb0ff476 /roomserver/storage/shared/storage.go | |
parent | 3e87096a21729fcc7e074d09ee12da56394dd15d (diff) |
Remove `origin` field from PDUs (#2737)
This nukes the `origin` field from PDUs as per
matrix-org/matrix-spec#998, matrix-org/gomatrixserverlib#341.
Diffstat (limited to 'roomserver/storage/shared/storage.go')
-rw-r--r-- | roomserver/storage/shared/storage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go index 00a17e5c..593abbea 100644 --- a/roomserver/storage/shared/storage.go +++ b/roomserver/storage/shared/storage.go @@ -896,7 +896,7 @@ func (d *Database) handleRedactions( switch { case redactUser >= pl.Redact: // The power level of the redaction event’s sender is greater than or equal to the redact level. - case redactedEvent.Origin() == redactionEvent.Origin() && redactedEvent.Sender() == redactionEvent.Sender(): + case redactedEvent.Sender() == redactionEvent.Sender(): // The domain of the redaction event’s sender matches that of the original event’s sender. default: return nil, "", nil |