From fe932273aa01c8b2bd8814973c9e22ce311ab341 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Thu, 5 Dec 2019 17:32:51 -0600 Subject: [PATCH] Implement MSC1957: Integration manager discovery https://github.com/matrix-org/matrix-doc/pull/1957 Yay Riot iOS now supports integration manager discovery! --- .../templates/static-files/well-known/matrix-client.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/matrix-base/templates/static-files/well-known/matrix-client.j2 b/roles/matrix-base/templates/static-files/well-known/matrix-client.j2 index 4e93c2d8..1316bbb5 100644 --- a/roles/matrix-base/templates/static-files/well-known/matrix-client.j2 +++ b/roles/matrix-base/templates/static-files/well-known/matrix-client.j2 @@ -8,4 +8,14 @@ "base_url": "{{ matrix_identity_server_url }}" } {% endif %} + {% if matrix_dimension_integrations_rest_url and matrix_dimension_integrations_ui_url %}, + "m.integrations": { + "managers": [ + { + "api_url": "{{ matrix_dimension_integrations_rest_url }}", + "ui_url": "{{ matrix_dimension_integrations_ui_url }}" + } + ] + } + {% endif %} }