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:
parent
5ce05fade4
commit
6727f14326
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue