0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 22:41:12 +01: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 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) (const string_view &type, const string_view &state_key, const event::idx &event_idx)
{ {
room::id::buf buf; 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 ret;
}}; }};
return state.for_each("ircd.rooms", proffer_state);
opts.server? return ret;
state.for_each("ircd.rooms", opts.server, proffer_state):
state.for_each("ircd.rooms", proffer_state);
} }
return events::type::for_each_in("m.room.create", [&proffer, &ret] return events::type::for_each_in("m.room.create", [&proffer, &ret]