0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +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] 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);
}); });
} }