mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22: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]
|
||||
(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)
|
||||
array.append(unquote(alias));
|
||||
const json::array aliases
|
||||
{
|
||||
content["aliases"]
|
||||
};
|
||||
|
||||
for(const json::string &a : aliases)
|
||||
array.append(a);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue