From b7e91abfe2150334932563ff9a930a1225b9582b Mon Sep 17 00:00:00 2001 From: behouba Date: Mon, 23 Sep 2019 03:02:41 +0300 Subject: [PATCH] response from /send_join now use gomatrixserverlib.RespSendJoin --- federationapi/routing/join.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, }, } }