diff options
author | Mathieu Velten <matmaul@gmail.com> | 2023-11-28 14:15:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 13:15:26 +0000 |
commit | b0ed14d8156e611a5f8ee772e69e171bd645820c (patch) | |
tree | 45db2dcf282d45270f47355ccc8d4c45f9115004 /synapse/server_notices | |
parent | Remove old full schema dumps. (#16697) (diff) | |
download | synapse-b0ed14d8156e611a5f8ee772e69e171bd645820c.tar.xz |
Ignore `encryption_enabled_by_default_for_room_type` for notices room (#16677)
Diffstat (limited to 'synapse/server_notices')
-rw-r--r-- | synapse/server_notices/server_notices_manager.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/server_notices/server_notices_manager.py b/synapse/server_notices/server_notices_manager.py index c3552d6c73..44b999677a 100644 --- a/synapse/server_notices/server_notices_manager.py +++ b/synapse/server_notices/server_notices_manager.py @@ -178,6 +178,8 @@ class ServerNoticesManager: "avatar_url": self._config.servernotices.server_notices_mxid_avatar_url, } + # `ignore_forced_encryption` is used to bypass `encryption_enabled_by_default_for_room_type` + # setting if it set, since the server notices will not be encrypted anyway. room_id, _, _ = await self._room_creation_handler.create_room( requester, config={ @@ -187,6 +189,7 @@ class ServerNoticesManager: }, ratelimit=False, creator_join_profile=join_profile, + ignore_forced_encryption=True, ) self.maybe_get_notice_room_for_user.invalidate((user_id,)) |