mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
modules/federation/state_ids: Swap auth_chain and pdu_ids order in response.
This commit is contained in:
parent
c2cd18ea56
commit
c2e22399ce
1 changed files with 14 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue