0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

modules/federation/state_ids: Swap auth_chain and pdu_ids order in response.

This commit is contained in:
Jason Volk 2019-04-24 17:10:48 -07:00
parent c2cd18ea56
commit c2e22399ce

View file

@ -80,20 +80,6 @@ get__state_ids(client &client,
json::stack::object top{out};
// pdu_ids
{
json::stack::array pdu_ids
{
top, "pdu_ids"
};
state.for_each(m::event::id::closure{[&pdu_ids]
(const m::event::id &event_id)
{
pdu_ids.append(event_id);
}});
}
// auth_chain
{
json::stack::array auth_chain
@ -112,6 +98,20 @@ get__state_ids(client &client,
});
}
// pdu_ids
{
json::stack::array pdu_ids
{
top, "pdu_ids"
};
state.for_each(m::event::id::closure{[&pdu_ids]
(const m::event::id &event_id)
{
pdu_ids.append(event_id);
}});
}
return response;
}