diff --git a/clientapi/routing/state.go b/clientapi/routing/state.go index a50f1e883..9c2bed12e 100644 --- a/clientapi/routing/state.go +++ b/clientapi/routing/state.go @@ -133,7 +133,7 @@ func OnIncomingStateTypeRequest( var event *gomatrixserverlib.HeaderedEvent if membershipRes.IsInRoom { stateRes := api.QueryLatestEventsAndStateResponse{} - if err := rsAPI.QueryLatestEventsAndState(ctx, &api.QueryLatestEventsAndStateRequest{ + if err = rsAPI.QueryLatestEventsAndState(ctx, &api.QueryLatestEventsAndStateRequest{ RoomID: roomID, StateToFetch: []gomatrixserverlib.StateKeyTuple{ gomatrixserverlib.StateKeyTuple{