0
0
Fork 0
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:
Jason Volk 2019-02-04 22:50:51 -08:00
parent a40a7912b0
commit 03cb4a613b
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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