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:
Matthew Hodgson 2018-09-18 14:16:09 +01:00
parent a85e2625cd
commit 197f4646bd
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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))