From b13cbb18fbb21d24f655c1b94811de2d80f617ef Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Thu, 6 Jul 2017 11:44:15 +0100 Subject: [PATCH] Response to createRoom is now the room's ID (#149) --- .../matrix-org/dendrite/clientapi/writers/createroom.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/writers/createroom.go b/src/github.com/matrix-org/dendrite/clientapi/writers/createroom.go index e05c17424..fccc42b7e 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/writers/createroom.go +++ b/src/github.com/matrix-org/dendrite/clientapi/writers/createroom.go @@ -192,9 +192,13 @@ func createRoom(req *http.Request, device *authtypes.Device, cfg config.Dendrite return httputil.LogThenError(req, err) } + response := createRoomResponse{ + RoomID: roomID, + } + return util.JSONResponse{ Code: 200, - JSON: builtEvents, + JSON: response, } }