From 4d51bffcae4dc8d27d62668c94812f90602270b9 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 11 Sep 2017 17:43:44 +0100 Subject: [PATCH] Use gomatrixserverlib.RespInvite --- .../matrix-org/dendrite/federationapi/writers/invite.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/federationapi/writers/invite.go b/src/github.com/matrix-org/dendrite/federationapi/writers/invite.go index 623fa73a5..58eb7da23 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/writers/invite.go +++ b/src/github.com/matrix-org/dendrite/federationapi/writers/invite.go @@ -101,11 +101,6 @@ func Invite( // the other servers in the room that we have been invited. return util.JSONResponse{ Code: 200, - // The response to /invite is the signed event but this is returned as - // the second element of a two element list where the first element is - // the constant integer 200. - // (This protocol oddity is the result of a typo in the synapse matrix - // server, and is preserved to maintain compatibility.) - JSON: []interface{}{200, &signedEvent}, + JSON: gomatrixserverlib.RespInvite{Event: signedEvent}, } }