diff --git a/modules/client/rooms/invite.cc b/modules/client/rooms/invite.cc index a01951337..151c9d0bd 100644 --- a/modules/client/rooms/invite.cc +++ b/modules/client/rooms/invite.cc @@ -89,6 +89,7 @@ invite__foreign(const m::event &event) at<"state_key"_>(event) }; + assert(!my(target)); const unique_buffer bufs { 148_KiB diff --git a/modules/m_room_member.cc b/modules/m_room_member.cc index 22d2c841f..45dc3de1b 100644 --- a/modules/m_room_member.cc +++ b/modules/m_room_member.cc @@ -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