0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-28 17:52:54 +01:00

ircd:Ⓜ️🪝 Fix call to m::membership() for non-member event.

This commit is contained in:
Jason Volk 2023-02-18 14:53:21 -08:00
parent 0fd5514d49
commit 62d175b17c

View file

@ -707,9 +707,10 @@ ircd::m::_hook_match(const m::event &matching,
if(at<"state_key"_>(matching) != json::get<"state_key"_>(event))
return false;
if(membership(matching))
if(membership(matching) != membership(event))
return false;
if(json::get<"type"_>(matching) == "m.room.member")
if(membership(matching))
if(membership(matching) != membership(event))
return false;
if(json::get<"content"_>(matching))
if(json::get<"type"_>(event) == "m.room.message")