summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/client')
-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",