summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-03-30 17:53:25 +0100
committerGitHub <noreply@github.com>2020-03-30 17:53:25 +0100
commit7042840b3201644ee71ea3e446576aa347b6d2a3 (patch)
tree5570cfd5feec4728257bd1b0b2156652cbf1598c /synapse/handlers
parentFix a small typo in the `metrics_flags` config option. (#7171) (diff)
downloadsynapse-7042840b3201644ee71ea3e446576aa347b6d2a3.tar.xz
Transfer alias mappings when joining an upgraded room (#6946)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/room_member.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 4260426369..c3ee8db4f0 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -519,6 +519,9 @@ class RoomMemberHandler(object):
             yield self.store.set_room_is_public(old_room_id, False)
             yield self.store.set_room_is_public(room_id, True)
 
+        # Transfer alias mappings in the room directory
+        yield self.store.update_aliases_for_room(old_room_id, room_id)
+
         # Check if any groups we own contain the predecessor room
         local_group_ids = yield self.store.get_local_groups_for_room(old_room_id)
         for group_id in local_group_ids: