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:
parent
fb96f017b7
commit
6036af66b8
2 changed files with 3 additions and 5 deletions
|
@ -35,10 +35,9 @@ get__state(client &client,
|
|||
url::decode(request.parv[0], room_id)
|
||||
};
|
||||
|
||||
//TODO: =
|
||||
m::event::id::buf 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
|
||||
{
|
||||
|
|
|
@ -35,10 +35,9 @@ get__state_ids(client &client,
|
|||
url::decode(request.parv[0], room_id)
|
||||
};
|
||||
|
||||
//TODO: =
|
||||
m::event::id::buf event_id;
|
||||
// if(request.query["event_id"])
|
||||
// event_id = url::decode(request.query.at("event_id"), event_id);
|
||||
if(request.query["event_id"])
|
||||
event_id = url::decode(request.query.at("event_id"), event_id);
|
||||
|
||||
const m::room room
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue