0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

modules/client/createroom: Update the createRoom endpoint handler.

This commit is contained in:
Jason Volk 2018-02-11 15:02:07 -08:00
parent dbdc4a94d2
commit 5c641d63ef

View file

@ -47,21 +47,16 @@ try
m::id::generate, my_host()
};
json::iov event;
json::iov content;
const json::iov::push push[]
const m::room room
{
{ event, { "sender", sender_id }},
{ content, { "creator", sender_id }},
create(room_id, sender_id)
};
m::room room
const m::event::id::buf join_event_id
{
room_id
join(room, sender_id)
};
//room.create(event, content);
return resource::response
{
client, http::CREATED,