Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 9535fd0

Browse files
authored
Disable groups/communities by default. (#12344)
This disables the endpoints (and sync response fields) for groups/communities by default.
1 parent 3201863 commit 9535fd0

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

changelog.d/12344.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The groups/communities feature in Synapse has been disabled by default.

docs/upgrade.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ process, for example:
8585
dpkg -i matrix-synapse-py3_1.3.0+stretch1_amd64.deb
8686
```
8787

88+
# Upgrading to v1.58.0
89+
90+
## Groups/communities feature has been disabled by default
91+
92+
The non-standard groups/communities feature in Synapse has been disabled by default
93+
and will be removed in Synapse v1.61.0.
94+
8895
# Upgrading to v1.57.0
8996

9097
## Changes to database schema for application services

synapse/config/experimental.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
7474
self.msc3720_enabled: bool = experimental.get("msc3720_enabled", False)
7575

7676
# The deprecated groups feature.
77-
self.groups_enabled: bool = experimental.get("groups_enabled", True)
77+
self.groups_enabled: bool = experimental.get("groups_enabled", False)
7878

7979
# MSC2654: Unread counts
8080
self.msc2654_enabled: bool = experimental.get("msc2654_enabled", False)

tests/rest/admin/test_admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def prepare(self, reactor: MemoryReactor, clock: Clock, hs: HomeServer) -> None:
6363
self.other_user = self.register_user("user", "pass")
6464
self.other_user_token = self.login("user", "pass")
6565

66+
@unittest.override_config({"experimental_features": {"groups_enabled": True}})
6667
def test_delete_group(self) -> None:
6768
# Create a new group
6869
channel = self.make_request(

0 commit comments

Comments
 (0)