0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd:Ⓜ️ Replace event membership ref conditional with the convenience.

This commit is contained in:
Jason Volk 2018-03-24 21:46:17 -07:00
parent d3c5845ee4
commit daed99e94e

View file

@ -260,9 +260,7 @@ ircd::m::dbs::_index__room_origins(db::txn &txn,
const string_view &membership const string_view &membership
{ {
json::get<"membership"_>(event)? m::membership(event)
string_view{json::get<"membership"_>(event)}:
unquote(at<"content"_>(event).get("membership"))
}; };
assert(!empty(membership)); assert(!empty(membership));