0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-08 13:08:56 +02:00

ircd:Ⓜ️:pretty: Show membership for applicable events in pretty multiline.

This commit is contained in:
Jason Volk 2020-05-01 09:21:25 -07:00
parent 6bc0d48a38
commit a507785f8f

View file

@ -382,6 +382,11 @@ ircd::m::pretty(std::ostream &s,
json::for_each(event, top_keys, out);
if(json::get<"type"_>(event) == "m.room.member")
s << std::setw(16) << std::right << "membership" << " :"
<< m::membership(event)
<< std::endl;
const auto &ts{json::get<"origin_server_ts"_>(event)};
{
thread_local char buf[128];