mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Populate default room version from Constants
This commit is contained in:
parent
c7837dce24
commit
2f46804055
@ -16,6 +16,7 @@ import logging
|
|||||||
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
|
from synapse.api.constants import DEFAULT_ROOM_VERSION
|
||||||
from synapse.http.servlet import RestServlet
|
from synapse.http.servlet import RestServlet
|
||||||
|
|
||||||
from ._base import client_v2_patterns
|
from ._base import client_v2_patterns
|
||||||
@ -48,7 +49,7 @@ class CapabilitiesRestServlet(RestServlet):
|
|||||||
(200, {
|
(200, {
|
||||||
"capabilities": {
|
"capabilities": {
|
||||||
"m.room_versions": {
|
"m.room_versions": {
|
||||||
"default": "1",
|
"default": DEFAULT_ROOM_VERSION,
|
||||||
"available": {
|
"available": {
|
||||||
"1": "stable",
|
"1": "stable",
|
||||||
"2": "stable",
|
"2": "stable",
|
||||||
|
Loading…
Reference in New Issue
Block a user