summary refs log tree commit diff
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2019-03-05 22:53:41 -0700
committerTravis Ralston <travpc@gmail.com>2019-03-05 23:40:49 -0700
commit89b5876a000633c44a07edeadc1520e0dac593f0 (patch)
tree98b3f6c1a80c4d5c44863ee63ce1939171e5182b
parentAttempt 1 at fixing (diff)
downloadsynapse-89b5876a000633c44a07edeadc1520e0dac593f0.tar.xz
Revert "Attempt at fix 1"
This reverts commit 668206155.

This didn't work because of course it didn't. See Attempt 2 for details.
-rw-r--r--synapse/handlers/room_member.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index c338be7e0c..3b1b96fe4c 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -455,7 +455,6 @@ class RoomMemberHandler(object):
         logger.info("Is host in room? %s" % is_host_in_room)
         logger.info("effective_membership_state %s" % effective_membership_state)
         logger.info("remote_room_hosts %s" % remote_room_hosts)
-        logger.info("hs_is_mine %s" % self.hs.is_mine(target))
 
         if effective_membership_state == Membership.JOIN:
             if requester.is_guest:
@@ -486,14 +485,6 @@ class RoomMemberHandler(object):
                 defer.returnValue(ret)
 
         elif effective_membership_state == Membership.LEAVE:
-            # Send disinvite events to remotes
-            remote_invite = self.hs.is_mine(target)
-            if remote_invite and is_host_in_room:
-                remote_room_hosts = remote_room_hosts + [target.domain]
-                res = yield self._remote_reject_invite(
-                    requester, remote_room_hosts, room_id, target,
-                )
-                defer.returnValue(res)
             if not is_host_in_room:
                 # perhaps we've been invited
                 inviter = yield self._get_inviter(target.to_string(), room_id)