diff --git a/clientapi/producers/roomserver.go b/clientapi/producers/roomserver.go index 391ea07bf..d5a8ffd8f 100644 --- a/clientapi/producers/roomserver.go +++ b/clientapi/producers/roomserver.go @@ -105,13 +105,11 @@ func (c *RoomserverProducer) SendInputRoomEvents( // If we are in the room then the event should be sent using the SendEvents method. func (c *RoomserverProducer) SendInvite( ctx context.Context, inviteEvent gomatrixserverlib.HeaderedEvent, - inviteRoomState []gomatrixserverlib.InviteV2StrippedState, ) error { request := api.InputRoomEventsRequest{ InputInviteEvents: []api.InputInviteEvent{{ - Event: inviteEvent, - InviteRoomState: inviteRoomState, - RoomVersion: inviteEvent.RoomVersion, + Event: inviteEvent, + RoomVersion: inviteEvent.RoomVersion, }}, } var response api.InputRoomEventsResponse diff --git a/federationapi/routing/invite.go b/federationapi/routing/invite.go index 9ca253576..7a80b881a 100644 --- a/federationapi/routing/invite.go +++ b/federationapi/routing/invite.go @@ -127,7 +127,6 @@ func Invite( if err = producer.SendInvite( httpReq.Context(), signedEvent.Headered(intermediate.RoomVersion), - inviteStates, ); err != nil { util.GetLogger(httpReq.Context()).WithError(err).Error("producer.SendInvite failed") return jsonerror.InternalServerError()