0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-03 22:28:52 +02:00

modules/console: Use the interface provided prefix type iteration here.

This commit is contained in:
Jason Volk 2019-08-16 01:08:02 -07:00
parent 5ce05fade4
commit 6727f14326

View file

@ -7739,12 +7739,10 @@ console_cmd__room__top(opt &out, const string_view &line)
out << "servers err: " << m::room::origins{room_id}.count_error() << std::endl;
out << std::endl;
state.for_each(m::room::state::types{[&out, &state]
state.for_each("m.", m::room::state::types_bool{[&out, &state]
(const string_view &type)
{
if(!startswith(type, "m."))
return true;
assert(startswith(type, "m."));
if(type == "m.room.member")
return true;