0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02: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
{
json::get<"membership"_>(event)?
string_view{json::get<"membership"_>(event)}:
unquote(at<"content"_>(event).get("membership"))
m::membership(event)
};
assert(!empty(membership));