0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02: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."))
return true;
state.for_each(type, m::event::closure{[&out]
state.for_each(type, m::event::closure{[&out, &type]
(const m::event &event)
{
if(json::get<"state_key"_>(event) != "")
if(json::get<"state_key"_>(event) != "" && type != "m.room.aliases")
return;
out << json::get<"type"_>(event) << ':' << std::endl;