From d9648b0615f3a7b1d8a824777783f19fa46697f4 Mon Sep 17 00:00:00 2001 From: Kegsay Date: Wed, 8 Jul 2020 17:45:39 +0100 Subject: Finish implementing redactions (#1189) * Add a bit more logging to the fedsender * bugfix: continue sending PDUs if ones are added whilst sending another PDU Without this, the queue goes back to sleep on `<-oq.notifyPDUs` which won't fire because `pendingPDUs` is already > 0. This should fix a flakey sytest. * Break if no txn is sent * WIP syncapi work * More debugging * Bump GMSL version to pull in working Event.Redact * Remove logging * Make redactions work on v3+ * Fix more tests --- internal/eventutil/events.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/eventutil/events.go') 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 } -- cgit v1.2.3