mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd:Ⓜ️:rooms::summary: Minor cleanup.
This commit is contained in:
parent
41a6fa4e37
commit
bfeceea645
1 changed files with 9 additions and 4 deletions
|
@ -402,13 +402,18 @@ ircd::m::rooms::summary::chunk_local(const m::room &room,
|
||||||
state.for_each("m.room.aliases", [&array]
|
state.for_each("m.room.aliases", [&array]
|
||||||
(const m::event &event)
|
(const m::event &event)
|
||||||
{
|
{
|
||||||
const json::array aliases
|
const json::object &content
|
||||||
{
|
{
|
||||||
json::get<"content"_>(event).get("aliases")
|
json::get<"content"_>(event)
|
||||||
};
|
};
|
||||||
|
|
||||||
for(const string_view &alias : aliases)
|
const json::array aliases
|
||||||
array.append(unquote(alias));
|
{
|
||||||
|
content["aliases"]
|
||||||
|
};
|
||||||
|
|
||||||
|
for(const json::string &a : aliases)
|
||||||
|
array.append(a);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue