mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 01:30:12 +01:00
ircd:Ⓜ️:pretty: Show membership for applicable events in pretty multiline.
This commit is contained in:
parent
6bc0d48a38
commit
a507785f8f
1 changed files with 5 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue