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:
parent
b72758f904
commit
7f27cdbf1d
1 changed files with 7 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue