From 99ddf2798e07ca434b0ce3592be9dd444b495798 Mon Sep 17 00:00:00 2001 From: JesseBot Date: Sun, 30 Aug 2026 18:11:15 +0200 Subject: [PATCH] add support for the msc4143 rtc_foci well-known directive Signed-off-by: JesseBot --- changelog.d/20168.feature | 2 ++ synapse/rest/well_known.py | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 changelog.d/20168.feature diff --git a/changelog.d/20168.feature b/changelog.d/20168.feature new file mode 100644 index 00000000000..385070e21a3 --- /dev/null +++ b/changelog.d/20168.feature @@ -0,0 +1,2 @@ +This change updates the well-known endpoint to support msc4143. +Contributed by jessebot. diff --git a/synapse/rest/well_known.py b/synapse/rest/well_known.py index 3193761ad0a..33aefe1ffe9 100644 --- a/synapse/rest/well_known.py +++ b/synapse/rest/well_known.py @@ -53,6 +53,16 @@ async def get_well_known(self) -> JsonDict | None: "base_url": self._config.registration.default_identity_server } + if self._config.matrix_rtc.transports: + result["org.matrix.msc4143.rtc_foci"] = [] + + for transport in self._config.matrix_rtc.transports: + transport_json = { + "type": transport.type, + "livekit_service_url": transport.livekit_service_url, + } + result["org.matrix.msc4143.rtc_foci"].append(transport_json) + if self._config.mas.enabled: assert isinstance(self._auth, MasDelegatedAuth)