mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +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)
|
at<"state_key"_>(event)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert(!my(target));
|
||||||
const unique_buffer<mutable_buffer> bufs
|
const unique_buffer<mutable_buffer> bufs
|
||||||
{
|
{
|
||||||
148_KiB
|
148_KiB
|
||||||
|
|
|
@ -196,6 +196,9 @@ invite_foreign(const m::event &event,
|
||||||
target.host()
|
target.host()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(m::my_host(target_host))
|
||||||
|
return;
|
||||||
|
|
||||||
const m::room::origins origins
|
const m::room::origins origins
|
||||||
{
|
{
|
||||||
room_id
|
room_id
|
||||||
|
|
Loading…
Reference in a new issue