synapse-product/synapse/api
Andrew Morgan fcd6961441
Add option to enable encryption by default for new rooms (#7639)
Fixes https://github.com/matrix-org/synapse/issues/2431

Adds config option `encryption_enabled_by_default_for_room_type`, which determines whether encryption should be enabled with the default encryption algorithm in private or public rooms upon creation. Whether the room is private or public is decided based upon the room creation preset that is used.

Part of this PR is also pulling out all of the individual instances of `m.megolm.v1.aes-sha2` into a constant variable to eliminate typos ala https://github.com/matrix-org/synapse/pull/7637

Based on #7637
2020-06-10 17:44:34 +01:00
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
auth_blocking.py Stop Auth methods from polling the config on every req. (#7420) 2020-05-06 15:54:58 +01:00
auth.py Fix type information on assert_*_is_admin methods (#7645) 2020-06-05 14:33:49 +01:00
constants.py Add option to enable encryption by default for new rooms (#7639) 2020-06-10 17:44:34 +01:00
errors.py Convert http.HTTPStatus objects to their int equivalent (#7188) 2020-04-03 14:26:07 +01:00
filtering.py Fixup synapse.api to pass mypy (#6733) 2020-01-20 17:34:13 +00:00
ratelimiting.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
room_versions.py Implement room version 6 (MSC2240). (#7506) 2020-05-15 09:30:10 -04:00
urls.py Remove unused, undocumented "content repo" resource (#6628) 2020-01-03 17:10:52 +00:00