summary refs log tree commit diff
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2019-01-30 09:39:10 +0000
committerNeil Johnson <neil@matrix.org>2019-01-30 09:39:10 +0000
commit2f4680405507aa421d7c32052b3cd522969c0b3a (patch)
treed50e39259362a5ea93b791171c763c128c4c43cc
parentreflect that rooms v3 is a stable room version (diff)
downloadsynapse-2f4680405507aa421d7c32052b3cd522969c0b3a.tar.xz
Populate default room version from Constants
-rw-r--r--synapse/rest/client/v2_alpha/capabilities.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/capabilities.py b/synapse/rest/client/v2_alpha/capabilities.py
index 3dad4e9542..21e79f9233 100644
--- a/synapse/rest/client/v2_alpha/capabilities.py
+++ b/synapse/rest/client/v2_alpha/capabilities.py
@@ -16,6 +16,7 @@ import logging
 
 from twisted.internet import defer
 
+from synapse.api.constants import DEFAULT_ROOM_VERSION
 from synapse.http.servlet import RestServlet
 
 from ._base import client_v2_patterns
@@ -48,7 +49,7 @@ class CapabilitiesRestServlet(RestServlet):
             (200, {
                 "capabilities": {
                     "m.room_versions": {
-                        "default": "1",
+                        "default": DEFAULT_ROOM_VERSION,
                         "available": {
                             "1": "stable",
                             "2": "stable",