0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

modules/federation/state_ids: Seek an event_id before starting chunked encoding to allow 404.

This commit is contained in:
Jason Volk 2019-03-22 21:00:59 -07:00
parent b72758f904
commit 7f27cdbf1d

View file

@ -61,6 +61,13 @@ get__state_ids(client &client,
room
};
const m::event::auth::chain ac
{
event_id?
m::index(event_id):
m::head_idx(room)
};
resource::response::chunked response
{
client, http::OK
@ -94,11 +101,6 @@ get__state_ids(client &client,
top, "auth_chain"
};
const m::event::auth::chain ac
{
m::index(event_id)
};
ac.for_each([&auth_chain]
(const m::event::idx &event_idx)
{