From 1e6e23dab184f27acef81236e736d80b223e4d67 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 27 Sep 2020 00:31:52 +0100 Subject: [PATCH] switch SS /peek to use SendEventWithRewrite --- federationapi/routing/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 690372414..51ccf6c96 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -456,7 +456,7 @@ func (t *txnReq) processEventWithMissingState(ctx context.Context, e gomatrixser // pass the event along with the state to the roomserver using a background context so we don't // needlessly expire headeredEvent := e.Headered(roomVersion) - return api.SendEventWithState(context.Background(), t.rsAPI, resolvedState, headeredEvent, t.haveEventIDs(), roomVersion) + return api.SendEventWithState(context.Background(), t.rsAPI, resolvedState, headeredEvent, t.haveEventIDs()) } // lookupStateAfterEvent returns the room state after `eventID`, which is the state before eventID with the state of `eventID` (if it's a state event)