Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Separate trusted_private to a separate variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Sep 18, 2020
1 parent 6761768 commit aa9893c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions synapse/rest/client/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def __init__(self, hs):
self.e2ee_forced_private = (
RoomCreationPreset.PRIVATE_CHAT
in self.config.encryption_enabled_by_default_for_room_presets
or RoomCreationPreset.TRUSTED_PRIVATE_CHAT
)
self.e2ee_forced_trusted_private = (
RoomCreationPreset.TRUSTED_PRIVATE_CHAT
in self.config.encryption_enabled_by_default_for_room_presets
)

Expand Down Expand Up @@ -75,9 +77,10 @@ def on_GET(self, request):
"org.matrix.msc2432": True,
# Implements additional endpoints as described in MSC2666
"uk.half-shot.msc2666": True,
# Whether the new rooms will be set to encrypted or not.
# Whether new rooms will be set to encrypted or not (based on presets).
"io.element.e2ee_forced.public": self.e2ee_forced_public,
"io.element.e2ee_forced.private": self.e2ee_forced_private,
"io.element.e2ee_forced.trusted_private": self.e2ee_forced_trusted_private,
},
},
)
Expand Down

0 comments on commit aa9893c

Please sign in to comment.