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:
parent
0fd5514d49
commit
62d175b17c
1 changed files with 4 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue