summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-05-23 15:00:20 +0100
committerGitHub <noreply@github.com>2019-05-23 15:00:20 +0100
commit6368150a748e9303f34948873af360d8a62347b6 (patch)
tree2191d61afc76c7b214aa8e9bb623cb14b8635d0c /synapse/api
parentStore key validity time in the storage layer (diff)
downloadsynapse-6368150a748e9303f34948873af360d8a62347b6.tar.xz
Add config option for setting homeserver's default room version (#5223)
Replaces DEFAULT_ROOM_VERSION constant with a method that first checks the config, then returns a hardcoded value if the option is not present.

That hardcoded value is now located in the server.py config file.
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/room_versions.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/api/room_versions.py b/synapse/api/room_versions.py
index b2895355a8..4085bd10b9 100644
--- a/synapse/api/room_versions.py
+++ b/synapse/api/room_versions.py
@@ -85,10 +85,6 @@ class RoomVersions(object):
     )
 
 
-# the version we will give rooms which are created on this server
-DEFAULT_ROOM_VERSION = RoomVersions.V1
-
-
 KNOWN_ROOM_VERSIONS = {
     v.identifier: v for v in (
         RoomVersions.V1,