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

Commit 877b45e

Browse files
authored
Include io.element.thread capability for MSC3440. (#11690)
1 parent 102f4d3 commit 877b45e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: changelog.d/11690.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update the `/capabilities` response to include whether support for [MSC3440](https://github.com/matrix-org/matrix-doc/pull/3440) is available.

Diff for: synapse/rest/client/capabilities.py

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ async def on_GET(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
7373
"enabled": self.config.registration.enable_3pid_changes
7474
}
7575

76+
if self.config.experimental.msc3440_enabled:
77+
response["capabilities"]["io.element.thread"] = {"enabled": True}
78+
7679
return 200, response
7780

7881

0 commit comments

Comments
 (0)