summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-10-02 15:41:25 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-10-02 15:41:25 +0100
commit2cf77fd5fa8e0fd463aa1e77e1ebcb2ee12458bd (patch)
tree7fb72d423dad0b30c616a39f77d6ef3b1d9dfad8
parenttry doing upgrades after remote join (diff)
downloadsynapse-anoa/tag_transfer_logging.tar.xz
-rw-r--r--synapse/handlers/room_member.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 6afe37c775..ce7e4f1b82 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -464,19 +464,18 @@ class RoomMemberHandler(object):
                 if requester.is_guest:
                     content["kind"] = "guest"
 
-                ret = yield self._remote_join(
+                remote_join_response = yield self._remote_join(
                     requester, remote_room_hosts, room_id, target, content
                 )
 
                 # Copy over direct message status and room tags if this is a join
                 # on an upgraded room
 
-                logger.info("### Checking Predecessor")
-
                 # Check if this is an upgraded room
                 predecessor = yield self.store.get_room_predecessor(room_id)
 
-                logger.info("###! Predecessor for %s: %s", room_id, predecessor)
+                logger.debug("Found predecessor for %s: %s. Copying over room tags and push "
+                             "rules", room_id, predecessor)
 
                 if predecessor:
                     # It is an upgraded room. Copy over old tags
@@ -488,7 +487,7 @@ class RoomMemberHandler(object):
                         predecessor["room_id"], room_id, requester.user.to_string()
                     )
 
-                return ret
+                return remote_join_response
 
         elif effective_membership_state == Membership.LEAVE:
             if not is_host_in_room: