mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
modules/m_room_member: Fix improper hook match on local invites.
This commit is contained in:
parent
a40a7912b0
commit
03cb4a613b
2 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,7 @@ invite__foreign(const m::event &event)
|
|||
at<"state_key"_>(event)
|
||||
};
|
||||
|
||||
assert(!my(target));
|
||||
const unique_buffer<mutable_buffer> bufs
|
||||
{
|
||||
148_KiB
|
||||
|
|
|
@ -196,6 +196,9 @@ invite_foreign(const m::event &event,
|
|||
target.host()
|
||||
};
|
||||
|
||||
if(m::my_host(target_host))
|
||||
return;
|
||||
|
||||
const m::room::origins origins
|
||||
{
|
||||
room_id
|
||||
|
|
Loading…
Reference in a new issue