diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index beb7d4614..e20b44405 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -369,6 +369,7 @@ func (t *txnReq) processEvent(e gomatrixserverlib.Event, isInboundTxn bool) erro } if !stateResp.PrevEventsExist { + t.context = context.Background() return t.processEventWithMissingState(e, stateResp.RoomVersion, isInboundTxn) }