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:
parent
a151eadd62
commit
8a99d6d44f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue