mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-18 08:54:54 +03:00
allow m.room.summary and m.room.encryption events in invites
to provide better UX for clients receiving invites, so they can show a padlock icon or correct avatars on the inbound invite
This commit is contained in:
parent
a85e2625cd
commit
197f4646bd
2 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,8 @@ class EventTypes(object):
|
|||
RoomHistoryVisibility = "m.room.history_visibility"
|
||||
CanonicalAlias = "m.room.canonical_alias"
|
||||
RoomAvatar = "m.room.avatar"
|
||||
RoomSummary = "m.room.summary"
|
||||
RoomEncryption = "m.room.encryption"
|
||||
GuestAccess = "m.room.guest_access"
|
||||
|
||||
# These are used for validation
|
||||
|
|
|
@ -24,6 +24,8 @@ class ApiConfig(Config):
|
|||
EventTypes.JoinRules,
|
||||
EventTypes.CanonicalAlias,
|
||||
EventTypes.RoomAvatar,
|
||||
EventTypes.RoomSummary,
|
||||
EventTypes.RoomEncryption,
|
||||
EventTypes.Name,
|
||||
])
|
||||
|
||||
|
@ -36,5 +38,7 @@ class ApiConfig(Config):
|
|||
- "{JoinRules}"
|
||||
- "{CanonicalAlias}"
|
||||
- "{RoomAvatar}"
|
||||
- "{RoomSummary}"
|
||||
- "{RoomEncryption}"
|
||||
- "{Name}"
|
||||
""".format(**vars(EventTypes))
|
||||
|
|
Loading…
Reference in a new issue