mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 06:53:47 +01:00
Migrate encryption state on room upgrade (#4411)
* Migrate encryption state on room upgrade Signed-off-by: Andrew Morgan <andrew@amorgan.xyz> * Add changelog file
This commit is contained in:
parent
25dd56ace3
commit
702c4b750c
3 changed files with 3 additions and 0 deletions
1
changelog.d/4411.bugfix
Normal file
1
changelog.d/4411.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Ensure encrypted room state is persisted across room upgrades.
|
|
@ -68,6 +68,7 @@ class EventTypes(object):
|
|||
Aliases = "m.room.aliases"
|
||||
Redaction = "m.room.redaction"
|
||||
ThirdPartyInvite = "m.room.third_party_invite"
|
||||
Encryption = "m.room.encryption"
|
||||
|
||||
RoomHistoryVisibility = "m.room.history_visibility"
|
||||
CanonicalAlias = "m.room.canonical_alias"
|
||||
|
|
|
@ -269,6 +269,7 @@ class RoomCreationHandler(BaseHandler):
|
|||
(EventTypes.RoomHistoryVisibility, ""),
|
||||
(EventTypes.GuestAccess, ""),
|
||||
(EventTypes.RoomAvatar, ""),
|
||||
(EventTypes.Encryption, ""),
|
||||
)
|
||||
|
||||
old_room_state_ids = yield self.store.get_filtered_current_state_ids(
|
||||
|
|
Loading…
Reference in a new issue