summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-08-22 11:47:08 +0100
committerErik Johnston <erik@matrix.org>2018-08-22 11:47:08 +0100
commit2f141f4c41b0bd8d8802f558f3ab4017c51a1684 (patch)
tree8be9a64740b248673f9ccadaf407ded5160af121 /synapse/api/constants.py
parentMerge branch 'rav/fix_gdpr_consent' into matrix-org-hotfixes (diff)
parentMerge pull request #3659 from matrix-org/erikj/split_profiles (diff)
downloadsynapse-2f141f4c41b0bd8d8802f558f3ab4017c51a1684.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py

index b0da506f6d..912bf024bf 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py
@@ -97,9 +97,14 @@ class ThirdPartyEntityKind(object): LOCATION = "location" +class RoomVersions(object): + V1 = "1" + VDH_TEST = "vdh-test-version" + + # the version we will give rooms which are created on this server -DEFAULT_ROOM_VERSION = "1" +DEFAULT_ROOM_VERSION = RoomVersions.V1 # vdh-test-version is a placeholder to get room versioning support working and tested # until we have a working v2. -KNOWN_ROOM_VERSIONS = {"1", "vdh-test-version"} +KNOWN_ROOM_VERSIONS = {RoomVersions.V1, RoomVersions.VDH_TEST}