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:
parent
d2deab7e50
commit
54352bff36
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue