0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 23:40:57 +01:00

modules/console: Show aliases on room top cmd output.

This commit is contained in:
Jason Volk 2019-07-20 22:33:12 -07:00
parent a151eadd62
commit 8a99d6d44f

View file

@ -7581,10 +7581,10 @@ console_cmd__room__top(opt &out, const string_view &line)
if(!startswith(type, "m.")) if(!startswith(type, "m."))
return true; return true;
state.for_each(type, m::event::closure{[&out] state.for_each(type, m::event::closure{[&out, &type]
(const m::event &event) (const m::event &event)
{ {
if(json::get<"state_key"_>(event) != "") if(json::get<"state_key"_>(event) != "" && type != "m.room.aliases")
return; return;
out << json::get<"type"_>(event) << ':' << std::endl; out << json::get<"type"_>(event) << ':' << std::endl;