summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2022-03-12 13:23:37 -0500
committerGitHub <noreply@github.com>2022-03-12 13:23:37 -0500
commit54f674f7a9107d3dccd6c126c3e99337314a12c2 (patch)
treecc4b37faa812cf016b41b052b5211f70318794a3 /synapse/app
parentAdd config settings for background update parameters (#11980) (diff)
downloadsynapse-54f674f7a9107d3dccd6c126c3e99337314a12c2.tar.xz
Deprecate the groups/communities endpoints and add an experimental configuration flag. (#12200)
Diffstat (limited to 'synapse/app')
-rw-r--r--synapse/app/generic_worker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py
index a10a63b06c..b6f510ed30 100644
--- a/synapse/app/generic_worker.py
+++ b/synapse/app/generic_worker.py
@@ -322,7 +322,8 @@ class GenericWorkerServer(HomeServer):
 
                     presence.register_servlets(self, resource)
 
-                    groups.register_servlets(self, resource)
+                    if self.config.experimental.groups_enabled:
+                        groups.register_servlets(self, resource)
 
                     resources.update({CLIENT_API_PREFIX: resource})