summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-12-24 10:48:59 +0100
committerGitHub <noreply@github.com>2018-12-24 10:48:59 +0100
commitcd018e3543649b180118e934b80c47310183400e (patch)
tree0b9acff59fac00042c0982eecc6fda363627cd69 /synapse/api/constants.py
parentReturn well_known in /login response (#4319) (diff)
parentNewsfile (diff)
downloadsynapse-cd018e3543649b180118e934b80c47310183400e.tar.xz
Merge pull request #4307 from matrix-org/erikj/v2_rooms
Add v2 room version
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index b7f25a42a2..87bc1cb53d 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -102,6 +102,7 @@ class ThirdPartyEntityKind(object):
 
 class RoomVersions(object):
     V1 = "1"
+    V2 = "2"
     VDH_TEST = "vdh-test-version"
     STATE_V2_TEST = "state-v2-test"
 
@@ -113,6 +114,7 @@ DEFAULT_ROOM_VERSION = RoomVersions.V1
 # until we have a working v2.
 KNOWN_ROOM_VERSIONS = {
     RoomVersions.V1,
+    RoomVersions.V2,
     RoomVersions.VDH_TEST,
     RoomVersions.STATE_V2_TEST,
 }