0
0
Fork 0
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:
Jason Volk 2020-03-07 12:16:33 -08:00
parent 41a6fa4e37
commit bfeceea645

View file

@ -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);
});
}