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

Commit

Permalink
Include io.element.thread capability for MSC3440. (#11690)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored Jan 5, 2022
1 parent 102f4d3 commit 877b45e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/11690.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the `/capabilities` response to include whether support for [MSC3440](https://github.com/matrix-org/matrix-doc/pull/3440) is available.
3 changes: 3 additions & 0 deletions synapse/rest/client/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ async def on_GET(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
"enabled": self.config.registration.enable_3pid_changes
}

if self.config.experimental.msc3440_enabled:
response["capabilities"]["io.element.thread"] = {"enabled": True}

return 200, response


Expand Down

0 comments on commit 877b45e

Please sign in to comment.