Response to createRoom is now the room's ID (#149)

This commit is contained in:
Brendan Abolivier 2017-07-06 11:44:15 +01:00 committed by Mark Haines
parent b2f9b8c641
commit b13cbb18fb

View file

@ -192,9 +192,13 @@ func createRoom(req *http.Request, device *authtypes.Device, cfg config.Dendrite
return httputil.LogThenError(req, err) return httputil.LogThenError(req, err)
} }
response := createRoomResponse{
RoomID: roomID,
}
return util.JSONResponse{ return util.JSONResponse{
Code: 200, Code: 200,
JSON: builtEvents, JSON: response,
} }
} }