Skip to content
Snippets Groups Projects
Unverified Commit 1866fb39 authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Move experimental support for MSC3440 to /versions. (#12099)

Instead of being part of /capabilities, this matches a change to
MSC3440 to properly use these endpoints.
parent 1901cb1d
No related branches found
No related tags found
No related merge requests found
Move experimental support for [MSC3440](https://github.com/matrix-org/matrix-doc/pull/3440) to /versions.
...@@ -72,9 +72,6 @@ class CapabilitiesRestServlet(RestServlet): ...@@ -72,9 +72,6 @@ class CapabilitiesRestServlet(RestServlet):
"org.matrix.msc3244.room_capabilities" "org.matrix.msc3244.room_capabilities"
] = MSC3244_CAPABILITIES ] = MSC3244_CAPABILITIES
if self.config.experimental.msc3440_enabled:
response["capabilities"]["io.element.thread"] = {"enabled": True}
if self.config.experimental.msc3720_enabled: if self.config.experimental.msc3720_enabled:
response["capabilities"]["org.matrix.msc3720.account_status"] = { response["capabilities"]["org.matrix.msc3720.account_status"] = {
"enabled": True, "enabled": True,
......
...@@ -99,6 +99,8 @@ class VersionsRestServlet(RestServlet): ...@@ -99,6 +99,8 @@ class VersionsRestServlet(RestServlet):
"org.matrix.msc2716": self.config.experimental.msc2716_enabled, "org.matrix.msc2716": self.config.experimental.msc2716_enabled,
# Adds support for jump to date endpoints (/timestamp_to_event) as per MSC3030 # Adds support for jump to date endpoints (/timestamp_to_event) as per MSC3030
"org.matrix.msc3030": self.config.experimental.msc3030_enabled, "org.matrix.msc3030": self.config.experimental.msc3030_enabled,
# Adds support for thread relations, per MSC3440.
"org.matrix.msc3440": self.config.experimental.msc3440_enabled,
}, },
}, },
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment