summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-01-28 15:16:50 +0000
committerGitHub <noreply@github.com>2019-01-28 15:16:50 +0000
commit88f4df85cab81381f5ce661455cc74645dbb19e3 (patch)
tree5c5ed566ca3f68cc3c8e97ab20638f8e725edd33 /synapse/handlers/room.py
parentRemove --process-dependency-links from UPGRADE.rst (#4485) (diff)
parentChange return syntax in doc string (diff)
downloadsynapse-88f4df85cab81381f5ce661455cc74645dbb19e3.tar.xz
Merge pull request #4412 from matrix-org/anoa/dm_room_upgrade
Migrate direct message and tag state on room upgrade
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py

index cb8c5f77dd..388302de09 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py
@@ -125,7 +125,7 @@ class RoomCreationHandler(BaseHandler): ) yield self.auth.check_from_context(tombstone_event, tombstone_context) - yield self.clone_exiting_room( + yield self.clone_existing_room( requester, old_room_id=old_room_id, new_room_id=new_room_id, @@ -230,7 +230,7 @@ class RoomCreationHandler(BaseHandler): ) @defer.inlineCallbacks - def clone_exiting_room( + def clone_existing_room( self, requester, old_room_id, new_room_id, new_room_version, tombstone_event_id, ): @@ -262,6 +262,7 @@ class RoomCreationHandler(BaseHandler): initial_state = dict() + # Replicate relevant room events types_to_copy = ( (EventTypes.JoinRules, ""), (EventTypes.Name, ""),