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" RoomHistoryVisibility = "m.room.history_visibility"
CanonicalAlias = "m.room.canonical_alias" CanonicalAlias = "m.room.canonical_alias"
RoomAvatar = "m.room.avatar" RoomAvatar = "m.room.avatar"
RoomSummary = "m.room.summary"
RoomEncryption = "m.room.encryption"
GuestAccess = "m.room.guest_access" GuestAccess = "m.room.guest_access"
# These are used for validation # These are used for validation

View File

@ -24,6 +24,8 @@ class ApiConfig(Config):
EventTypes.JoinRules, EventTypes.JoinRules,
EventTypes.CanonicalAlias, EventTypes.CanonicalAlias,
EventTypes.RoomAvatar, EventTypes.RoomAvatar,
EventTypes.RoomSummary,
EventTypes.RoomEncryption,
EventTypes.Name, EventTypes.Name,
]) ])
@ -36,5 +38,7 @@ class ApiConfig(Config):
- "{JoinRules}" - "{JoinRules}"
- "{CanonicalAlias}" - "{CanonicalAlias}"
- "{RoomAvatar}" - "{RoomAvatar}"
- "{RoomSummary}"
- "{RoomEncryption}"
- "{Name}" - "{Name}"
""".format(**vars(EventTypes)) """.format(**vars(EventTypes))