Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1866fb3

Browse files
authored
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.
1 parent 1901cb1 commit 1866fb3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

changelog.d/12099.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Move experimental support for [MSC3440](https://github.com/matrix-org/matrix-doc/pull/3440) to /versions.

synapse/rest/client/capabilities.py

-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ async def on_GET(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
7272
"org.matrix.msc3244.room_capabilities"
7373
] = MSC3244_CAPABILITIES
7474

75-
if self.config.experimental.msc3440_enabled:
76-
response["capabilities"]["io.element.thread"] = {"enabled": True}
77-
7875
if self.config.experimental.msc3720_enabled:
7976
response["capabilities"]["org.matrix.msc3720.account_status"] = {
8077
"enabled": True,

synapse/rest/client/versions.py

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def on_GET(self, request: Request) -> Tuple[int, JsonDict]:
9999
"org.matrix.msc2716": self.config.experimental.msc2716_enabled,
100100
# Adds support for jump to date endpoints (/timestamp_to_event) as per MSC3030
101101
"org.matrix.msc3030": self.config.experimental.msc3030_enabled,
102+
# Adds support for thread relations, per MSC3440.
103+
"org.matrix.msc3440": self.config.experimental.msc3440_enabled,
102104
},
103105
},
104106
)

0 commit comments

Comments
 (0)