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:
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
|
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));
|
||||||
|
|
Loading…
Reference in a new issue