From 18ead766a0fecc13a56cc3b3f20cfa7e811ed307 Mon Sep 17 00:00:00 2001 From: olivierdelcroix Date: Tue, 2 Jun 2026 10:41:57 +0200 Subject: [PATCH] copy im.vector.room.access_rules when upgrading --- synapse/handlers/room.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 6a5c76c6676..074765bde81 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -616,6 +616,10 @@ async def clone_existing_room( (EventTypes.PowerLevels, ""), ] + #:tchap: copy room access rule in the upgraded room + types_to_copy.extend([('im.vector.room.access_rules', "")]) + #:tchap:end + room_type = old_room_create_event.content.get(EventContentFields.ROOM_TYPE) if room_type is not None: # If the old room was a space, copy over the rooms in the space.