aboutsummaryrefslogtreecommitdiff
path: root/internal/eventutil
diff options
context:
space:
mode:
authordevonh <devon.dmytro@gmail.com>2023-08-31 15:33:38 +0000
committerGitHub <noreply@github.com>2023-08-31 15:33:38 +0000
commitbb2ab62cbf02abb6f600e6eb39fde67aa2ff3215 (patch)
tree0c2f7caa34a589cdd8338bee92fd7376f7c71313 /internal/eventutil
parent11fd2f019bb6325155c2fa825b82c1fbef07b300 (diff)
Handle event_format federation in /sync responses (#3192)
Diffstat (limited to 'internal/eventutil')
-rw-r--r--internal/eventutil/events.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/eventutil/events.go b/internal/eventutil/events.go
index 56ee576a..aa99e586 100644
--- a/internal/eventutil/events.go
+++ b/internal/eventutil/events.go
@@ -184,7 +184,7 @@ func RedactEvent(ctx context.Context, redactionEvent, redactedEvent gomatrixserv
if err != nil {
return err
}
- redactedBecause := synctypes.ToClientEvent(redactionEvent, synctypes.FormatSync, *senderID, redactionEvent.StateKey())
+ redactedBecause := synctypes.ToClientEvent(redactionEvent, synctypes.FormatSync, senderID.String(), redactionEvent.StateKey(), redactionEvent.Unsigned())
if err := redactedEvent.SetUnsignedField("redacted_because", redactedBecause); err != nil {
return err
}