diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-04-07 09:29:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 09:29:56 -0400 |
commit | 1a90c1e3af71fe57c5a4bce52c60e6cd7509b0c2 (patch) | |
tree | 005baebbda094b30147fe92db5a4cf9669ddee05 /synapse/handlers/sync.py | |
parent | Add opentracing spans to calls to external cache (#12380) (diff) | |
download | synapse-1a90c1e3af71fe57c5a4bce52c60e6cd7509b0c2.tar.xz |
Do not add groups to sync results if disabled. (#12408)
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 303c38c746..a91cea6e48 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -1155,8 +1155,9 @@ class SyncHandler: await self.store.get_e2e_unused_fallback_key_types(user_id, device_id) ) - logger.debug("Fetching group data") - await self._generate_sync_entry_for_groups(sync_result_builder) + if self.hs_config.experimental.groups_enabled: + logger.debug("Fetching group data") + await self._generate_sync_entry_for_groups(sync_result_builder) num_events = 0 |