mirror of
https://github.com/matrix-construct/construct
synced 2025-01-19 11:01:54 +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."))
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue