0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/console: Show joined members count in room top.

This commit is contained in:
Jason Volk 2019-07-14 15:26:42 -07:00
parent 198d3ff884
commit 2ad1c3acb9

View file

@ -7572,6 +7572,7 @@ console_cmd__room__top(opt &out, const string_view &line)
out << "top index: " << std::get<m::event::idx>(top) << std::endl;
out << "top depth: " << std::get<int64_t>(top) << std::endl;
out << "top event: " << std::get<m::event::id::buf>(top) << std::endl;
out << "joined: " << m::room::members{room_id}.count("join") << std::endl;
out << std::endl;
state.for_each(m::room::state::types{[&out, &state]