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

modules/federation: Fix state related event_id parameter.

This commit is contained in:
Jason Volk 2018-04-30 10:45:41 -07:00
parent fb96f017b7
commit 6036af66b8
2 changed files with 3 additions and 5 deletions

View file

@ -35,10 +35,9 @@ get__state(client &client,
url::decode(request.parv[0], room_id) url::decode(request.parv[0], room_id)
}; };
//TODO: =
m::event::id::buf event_id; m::event::id::buf event_id;
if(request.query["event_id"]) if(request.query["event_id"])
url::decode(request.query.at("event_id"), event_id); event_id = url::decode(request.query.at("event_id"), event_id);
const m::room room const m::room room
{ {

View file

@ -35,10 +35,9 @@ get__state_ids(client &client,
url::decode(request.parv[0], room_id) url::decode(request.parv[0], room_id)
}; };
//TODO: =
m::event::id::buf event_id; m::event::id::buf event_id;
// if(request.query["event_id"]) if(request.query["event_id"])
// event_id = url::decode(request.query.at("event_id"), event_id); event_id = url::decode(request.query.at("event_id"), event_id);
const m::room room const m::room room
{ {