diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-16 19:23:40 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-16 19:23:40 +0000 |
commit | 83b92c326f2ce9645e421281854459f00fb9b6c7 (patch) | |
tree | d56fe870a01f5209baa2449a843d1b94526f6476 /synapse/handlers/room.py | |
parent | Merge pull request #5727 from matrix-org/uhoreg/e2e_cross-signing2-part3 (diff) | |
parent | Depublish a room from the public rooms list when it is upgraded (#6232) (diff) | |
download | synapse-83b92c326f2ce9645e421281854459f00fb9b6c7.tar.xz |
Depublish a room from the public rooms list when it is upgraded (#6232)
* commit 'ace947e8d': Depublish a room from the public rooms list when it is upgraded (#6232)
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 22d46c353e..8464d220a4 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -131,6 +131,7 @@ class RoomCreationHandler(BaseHandler): old_room_id, new_version, # args for _upgrade_room ) + return ret @defer.inlineCallbacks @@ -191,7 +192,12 @@ class RoomCreationHandler(BaseHandler): requester, old_room_id, new_room_id, old_room_state ) - # and finally, shut down the PLs in the old room, and update them in the new + # Copy over user push rules, tags and migrate room directory state + yield self.room_member_handler.transfer_room_state_on_room_upgrade( + old_room_id, new_room_id + ) + + # finally, shut down the PLs in the old room, and update them in the new # room. yield self._update_upgraded_room_pls( requester, old_room_id, new_room_id, old_room_state |