From 2f4680405507aa421d7c32052b3cd522969c0b3a Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Wed, 30 Jan 2019 09:39:10 +0000 Subject: [PATCH] Populate default room version from Constants --- synapse/rest/client/v2_alpha/capabilities.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/rest/client/v2_alpha/capabilities.py b/synapse/rest/client/v2_alpha/capabilities.py index 3dad4e954..21e79f923 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",