aboutsummaryrefslogtreecommitdiff
path: root/internal/eventutil/events.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/eventutil/events.go')
-rw-r--r--internal/eventutil/events.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/eventutil/events.go b/internal/eventutil/events.go
index e3b8f3d3..1e3afac8 100644
--- a/internal/eventutil/events.go
+++ b/internal/eventutil/events.go
@@ -162,5 +162,10 @@ func RedactEvent(redactionEvent, redactedEvent *gomatrixserverlib.Event) (*gomat
if err != nil {
return nil, err
}
+ // NOTSPEC: sytest relies on this unspecced field existing :(
+ err = r.SetUnsignedField("redacted_by", redactionEvent.EventID())
+ if err != nil {
+ return nil, err
+ }
return &r, nil
}