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:
parent
dbdc4a94d2
commit
5c641d63ef
1 changed files with 4 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue