Skip to content
Snippets Groups Projects
Commit 2f468040 authored by Neil Johnson's avatar Neil Johnson
Browse files

Populate default room version from Constants

parent c7837dce
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment