0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-20 08:51:18 +01:00

modules/federation/invite: Enable.

This commit is contained in:
Jason Volk 2018-09-05 20:54:06 -07:00
parent 85aef85f61
commit ee8165dfd4

View file

@ -85,31 +85,37 @@ put__invite(client &client,
check_event(request, event); check_event(request, event);
//TODO: eval() thread_local char sigs[4_KiB];
const m::event signed_event
const json::strung event_strung
{ {
event signatures(sigs, event)
}; };
const json::member revent const json::strung revent{signed_event};
{ const json::value response[2]
"event", event_strung
};
const json::value response[]
{ {
json::value { 200L }, json::value { 200L },
json::value { &revent, 1 }, json::members
{
{ "event", revent }
}
}; };
return resource::response resource::response
{ {
client, json::value client, json::value
{ {
response, 2 response, 2
} }
}; };
m::vm::opts vmopts;
m::vm::eval
{
signed_event, vmopts
};
return {};
} }
resource::method resource::method