From 060737b0d5a34b9600da343496aa36273891932d Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 29 Jul 2021 11:59:11 -0700 Subject: [PATCH] well-known: set matrix/client --- src/views/domains.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/domains.js b/src/views/domains.js index 9b546dbef..03fba8f01 100644 --- a/src/views/domains.js +++ b/src/views/domains.js @@ -324,6 +324,15 @@ angular.module('Application').controller('DomainsController', ['$scope', '$locat var wellKnown = {}; if ($scope.domainConfigure.matrixHostname) { wellKnown['matrix/server'] = JSON.stringify({ 'm.server': $scope.domainConfigure.matrixHostname }); + // https://matrix.org/docs/spec/client_server/latest#get-well-known-matrix-client + wellKnown['matrix/client'] = JSON.stringify({ + 'm.homeserver': { + 'base_url': 'https://' + $scope.domainConfigure.matrixHostname + }, + 'm.identity_server': { + 'base_url': 'https://vector.im' + } + }); } if ($scope.domainConfigure.mastodonHostname) { wellKnown['host-meta'] = '\n'