mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 03:49:23 -05:00
by default include m.room.encryption on invites (#3902)
* by default include m.room.encryption on invites * fix constant * changelog
This commit is contained in:
parent
d534a27fe8
commit
ad7ac8853c
1
changelog.d/3902.feature
Normal file
1
changelog.d/3902.feature
Normal file
@ -0,0 +1 @@
|
|||||||
|
Include m.room.encryption on invites by default
|
@ -73,6 +73,7 @@ class EventTypes(object):
|
|||||||
RoomHistoryVisibility = "m.room.history_visibility"
|
RoomHistoryVisibility = "m.room.history_visibility"
|
||||||
CanonicalAlias = "m.room.canonical_alias"
|
CanonicalAlias = "m.room.canonical_alias"
|
||||||
RoomAvatar = "m.room.avatar"
|
RoomAvatar = "m.room.avatar"
|
||||||
|
RoomEncryption = "m.room.encryption"
|
||||||
GuestAccess = "m.room.guest_access"
|
GuestAccess = "m.room.guest_access"
|
||||||
|
|
||||||
# These are used for validation
|
# These are used for validation
|
||||||
|
@ -24,6 +24,7 @@ class ApiConfig(Config):
|
|||||||
EventTypes.JoinRules,
|
EventTypes.JoinRules,
|
||||||
EventTypes.CanonicalAlias,
|
EventTypes.CanonicalAlias,
|
||||||
EventTypes.RoomAvatar,
|
EventTypes.RoomAvatar,
|
||||||
|
EventTypes.RoomEncryption,
|
||||||
EventTypes.Name,
|
EventTypes.Name,
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -36,5 +37,6 @@ class ApiConfig(Config):
|
|||||||
- "{JoinRules}"
|
- "{JoinRules}"
|
||||||
- "{CanonicalAlias}"
|
- "{CanonicalAlias}"
|
||||||
- "{RoomAvatar}"
|
- "{RoomAvatar}"
|
||||||
|
- "{RoomEncryption}"
|
||||||
- "{Name}"
|
- "{Name}"
|
||||||
""".format(**vars(EventTypes))
|
""".format(**vars(EventTypes))
|
||||||
|
Loading…
Reference in New Issue
Block a user