From 205a128cdd6648bb3a4cf972155d57cca04d6c24 Mon Sep 17 00:00:00 2001 From: behouba Date: Mon, 18 Nov 2019 09:38:08 +0300 Subject: [PATCH] Fix spelling --- federationapi/routing/join.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 834a99c89..188835c1d 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -154,12 +154,12 @@ func SendJoin( // Fetch the state and auth chain. We do this before we send the events // on, in case this fails. - var stateAndAuthChainRepsonse api.QueryStateAndAuthChainResponse + var stateAndAuthChainResponse api.QueryStateAndAuthChainResponse err = query.QueryStateAndAuthChain(httpReq.Context(), &api.QueryStateAndAuthChainRequest{ PrevEventIDs: event.PrevEventIDs(), AuthEventIDs: event.AuthEventIDs(), RoomID: roomID, - }, &stateAndAuthChainRepsonse) + }, &stateAndAuthChainResponse) if err != nil { return httputil.LogThenError(httpReq, err) } @@ -177,8 +177,8 @@ func SendJoin( return util.JSONResponse{ Code: http.StatusOK, JSON: gomatrixserverlib.RespSendJoin{ - StateEvents: stateAndAuthChainRepsonse.StateEvents, - AuthEvents: stateAndAuthChainRepsonse.AuthChainEvents, + StateEvents: stateAndAuthChainResponse.StateEvents, + AuthEvents: stateAndAuthChainResponse.AuthChainEvents, Origin: cfg.Matrix.ServerName, }, }