Response to createRoom is now the room's ID

This commit is contained in:
Brendan Abolivier 2017-07-05 17:00:48 +01:00
parent b2f9b8c641
commit 58eb537cbe
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -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,
}
}