diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 0b60408f7..7170fa308 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -176,9 +176,9 @@ func SendJoin( return util.JSONResponse{ Code: http.StatusOK, - JSON: map[string]interface{}{ - "state": stateAndAuthChainRepsonse.StateEvents, - "auth_chain": stateAndAuthChainRepsonse.AuthChainEvents, + JSON: gomatrixserverlib.RespSendJoin{ + StateEvents: stateAndAuthChainRepsonse.StateEvents, + AuthEvents: stateAndAuthChainRepsonse.AuthChainEvents, }, } }