diff options
-rw-r--r-- | changelog.d/5000.bugfix | 1 | ||||
-rw-r--r-- | synapse/api/constants.py | 1 | ||||
-rw-r--r-- | synapse/handlers/room.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/changelog.d/5000.bugfix b/changelog.d/5000.bugfix new file mode 100644 index 0000000000..54feeec668 --- /dev/null +++ b/changelog.d/5000.bugfix @@ -0,0 +1 @@ +Transfer room widgets on room upgrade. diff --git a/synapse/api/constants.py b/synapse/api/constants.py index dd373fa4b8..b3017ad191 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py @@ -70,6 +70,7 @@ class EventTypes(object): ThirdPartyInvite = "m.room.third_party_invite" Encryption = "m.room.encryption" RelatedGroups = "m.room.related_groups" + Widgets = "im.vector.modular.widgets" RoomHistoryVisibility = "m.room.history_visibility" CanonicalAlias = "m.room.canonical_alias" diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 17628e2684..fd258dc58b 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -281,6 +281,7 @@ class RoomCreationHandler(BaseHandler): (EventTypes.Encryption, ""), (EventTypes.ServerACL, ""), (EventTypes.RelatedGroups, ""), + (EventTypes.Widgets, None), ) old_room_state_ids = yield self.store.get_filtered_current_state_ids( |