diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-12 13:23:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 13:23:37 -0500 |
commit | 54f674f7a9107d3dccd6c126c3e99337314a12c2 (patch) | |
tree | cc4b37faa812cf016b41b052b5211f70318794a3 /synapse/rest/__init__.py | |
parent | Add config settings for background update parameters (#11980) (diff) | |
download | synapse-54f674f7a9107d3dccd6c126c3e99337314a12c2.tar.xz |
Deprecate the groups/communities endpoints and add an experimental configuration flag. (#12200)
Diffstat (limited to 'synapse/rest/__init__.py')
-rw-r--r-- | synapse/rest/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/__init__.py b/synapse/rest/__init__.py index cebdeecb81..762808a571 100644 --- a/synapse/rest/__init__.py +++ b/synapse/rest/__init__.py @@ -118,7 +118,8 @@ class ClientRestResource(JsonResource): thirdparty.register_servlets(hs, client_resource) sendtodevice.register_servlets(hs, client_resource) user_directory.register_servlets(hs, client_resource) - groups.register_servlets(hs, client_resource) + if hs.config.experimental.groups_enabled: + groups.register_servlets(hs, client_resource) room_upgrade_rest_servlet.register_servlets(hs, client_resource) room_batch.register_servlets(hs, client_resource) capabilities.register_servlets(hs, client_resource) |