mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd:Ⓜ️🪝 Adjust hook matching to condition event.membership and event.content.membership.
This commit is contained in:
parent
0229022faa
commit
7d489a40e7
1 changed files with 2 additions and 2 deletions
|
@ -3704,8 +3704,8 @@ ircd::m::_hook_match(const m::event &matching,
|
|||
if(at<"state_key"_>(matching) != json::get<"state_key"_>(event))
|
||||
return false;
|
||||
|
||||
if(json::get<"membership"_>(matching))
|
||||
if(at<"membership"_>(matching) != json::get<"membership"_>(event))
|
||||
if(membership(matching))
|
||||
if(membership(matching) != membership(event))
|
||||
return false;
|
||||
|
||||
if(json::get<"content"_>(matching))
|
||||
|
|
Loading…
Reference in a new issue