mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 02:54:52 -04:00
Depublish a room from the public rooms list when it is upgraded (#6232)
This commit is contained in:
parent
53d7680e32
commit
ace947e8da
5 changed files with 93 additions and 31 deletions
|
@ -129,6 +129,7 @@ class RoomCreationHandler(BaseHandler):
|
|||
old_room_id,
|
||||
new_version, # args for _upgrade_room
|
||||
)
|
||||
|
||||
return ret
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
@ -189,7 +190,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue