diff options
author | Neil Johnson <neil@matrix.org> | 2019-01-30 09:39:10 +0000 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2019-01-30 09:39:10 +0000 |
commit | 2f4680405507aa421d7c32052b3cd522969c0b3a (patch) | |
tree | d50e39259362a5ea93b791171c763c128c4c43cc | |
parent | reflect that rooms v3 is a stable room version (diff) | |
download | synapse-2f4680405507aa421d7c32052b3cd522969c0b3a.tar.xz |
Populate default room version from Constants
Diffstat (limited to '')
-rw-r--r-- | synapse/rest/client/v2_alpha/capabilities.py | 3 |
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", |