Skip to content

Commit

Permalink
by default include m.room.encryption on invites (matrix-org#3902)
Browse files Browse the repository at this point in the history
* by default include m.room.encryption on invites

* fix constant

* changelog
  • Loading branch information
ara4n authored and hawkowl committed Jan 30, 2019
1 parent d534a27 commit ad7ac88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/3902.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include m.room.encryption on invites by default
1 change: 1 addition & 0 deletions synapse/api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class EventTypes(object):
RoomHistoryVisibility = "m.room.history_visibility"
CanonicalAlias = "m.room.canonical_alias"
RoomAvatar = "m.room.avatar"
RoomEncryption = "m.room.encryption"
GuestAccess = "m.room.guest_access"

# These are used for validation
Expand Down
2 changes: 2 additions & 0 deletions synapse/config/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def read_config(self, config):
EventTypes.JoinRules,
EventTypes.CanonicalAlias,
EventTypes.RoomAvatar,
EventTypes.RoomEncryption,
EventTypes.Name,
])

Expand All @@ -36,5 +37,6 @@ def default_config(cls, **kwargs):
- "{JoinRules}"
- "{CanonicalAlias}"
- "{RoomAvatar}"
- "{RoomEncryption}"
- "{Name}"
""".format(**vars(EventTypes))

0 comments on commit ad7ac88

Please sign in to comment.