From f4d8dde4806b74cb45ef90cef7ea2cf9eea72577 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 22 May 2017 19:58:33 +0100 Subject: [PATCH] Return a 200 OK response --- .../matrix-org/dendrite/clientapi/writers/joinroom.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/clientapi/writers/joinroom.go b/src/github.com/matrix-org/dendrite/clientapi/writers/joinroom.go index 7a697728a..8d9317ab6 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/writers/joinroom.go +++ b/src/github.com/matrix-org/dendrite/clientapi/writers/joinroom.go @@ -194,6 +194,14 @@ func (r joinRoomReq) joinRoomUsingServers( // TODO: validate the state response. // TODO: check that the join event passes auth against the state response. // TODO: send the state and the join event to the room server. + + return util.JSONResponse{ + Code: 200, + // TODO: Put the response struct somewhere common. + JSON: struct { + RoomID string `json:"room_id"` + }{roomID}, + } } if err != nil {