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

ird:Ⓜ️:rooms: Remove summary iteration based on room_id.host().

This commit is contained in:
Jason Volk 2019-09-13 17:41:26 -07:00
parent 4753e7aada
commit e4a95c9928

View file

@ -150,18 +150,21 @@ ircd::m::rooms::for_each(const opts &opts,
public_room_id
};
const auto proffer_state{[&proffer, &ret]
const auto proffer_state{[&opts, &proffer, &ret]
(const string_view &type, const string_view &state_key, const event::idx &event_idx)
{
room::id::buf buf;
proffer(room::id::unswap(state_key, buf));
const auto &room_id
{
room::id::unswap(state_key, buf)
};
proffer(room_id);
return ret;
}};
return
opts.server?
state.for_each("ircd.rooms", opts.server, proffer_state):
state.for_each("ircd.rooms", proffer_state);
state.for_each("ircd.rooms", proffer_state);
return ret;
}
return events::type::for_each_in("m.room.create", [&proffer, &ret]