diff --git a/modules/federation/state_ids.cc b/modules/federation/state_ids.cc index fde175b31..375cd5c9f 100644 --- a/modules/federation/state_ids.cc +++ b/modules/federation/state_ids.cc @@ -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) {