0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 02:18:53 +02:00

ircd:Ⓜ️ Use proper m::membership(event) test and deoptimize accordingly.

This commit is contained in:
Jason Volk 2018-05-20 20:26:12 -07:00
parent 78513d7998
commit 65b516e4c0

View file

@ -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;