0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-30 02:32:43 +01:00

modules/m_event: Add back membership to pretty_oneline().

This commit is contained in:
Jason Volk 2019-01-25 15:41:09 -08:00
parent d2deab7e50
commit 54352bff36

View file

@ -419,6 +419,14 @@ pretty_oneline__event(std::ostream &s,
else
s << "*" << " ";
const string_view &membership
{
json::get<"type"_>(event) == "m.room.member"?
m::membership(event):
string_view{}
};
out("content.membership", membership);
out("redacts", json::get<"redacts"_>(event));
const json::object &contents