diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 6f6574dd7..67a92b0f6 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -176,9 +176,12 @@ func SendJoin( return util.JSONResponse{ Code: http.StatusOK, - JSON: map[string]interface{}{ - "state": stateAndAuthChainRepsonse.StateEvents, - "auth_chain": stateAndAuthChainRepsonse.AuthChainEvents, + JSON: []interface{}{ + 200, + map[string]interface{}{ + "state": stateAndAuthChainRepsonse.StateEvents, + "auth_chain": stateAndAuthChainRepsonse.AuthChainEvents, + }, }, } }