diff options
author | Erik Johnston <erikj@jki.re> | 2018-08-22 10:04:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 10:04:55 +0100 |
commit | 3bf8bab8f9d9bbdf225361adc66a97fdf4ae3fcd (patch) | |
tree | e43a5df4670f4da60604e5cc03e507db4efd99ad /synapse/api/constants.py | |
parent | Merge pull request #3735 from matrix-org/travis/federation-spelling (diff) | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/refactor_s... (diff) | |
download | synapse-3bf8bab8f9d9bbdf225361adc66a97fdf4ae3fcd.tar.xz |
Merge pull request #3673 from matrix-org/erikj/refactor_state_handler
Refactor state module to support multiple room versions
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r-- | synapse/api/constants.py | 9 |
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} |