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:
parent
d3c5845ee4
commit
daed99e94e
1 changed files with 1 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue