mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 13:01:07 +01:00
ircd:Ⓜ️ Use proper m::membership(event) test and deoptimize accordingly.
This commit is contained in:
parent
78513d7998
commit
65b516e4c0
1 changed files with 2 additions and 1 deletions
|
@ -1339,6 +1339,7 @@ const
|
|||
"event_id",
|
||||
"membership",
|
||||
"state_key",
|
||||
"content", // Required because synapse events randomly have no event.membership
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1420,7 +1421,7 @@ const
|
|||
return test(event::closure_bool{[&membership, &closure]
|
||||
(const event &event)
|
||||
{
|
||||
if(at<"membership"_>(event) == membership)
|
||||
if(m::membership(event) == membership)
|
||||
if(closure(event))
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue