From 78c928a0cb584e4df172cfc15d8d957e33742689 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 26 Jul 2019 14:35:12 +0100 Subject: [PATCH] Add our server to the directory response --- federationapi/routing/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/query.go b/federationapi/routing/query.go index 781b8ea4..092b5dbd 100644 --- a/federationapi/routing/query.go +++ b/federationapi/routing/query.go @@ -62,7 +62,7 @@ func RoomAliasToID( // TODO: List servers that are aware of this room alias resp = gomatrixserverlib.RespDirectory{ RoomID: queryRes.RoomID, - Servers: []gomatrixserverlib.ServerName{}, + Servers: []gomatrixserverlib.ServerName{cfg.Matrix.ServerName}, } } else { // If no alias was found, return an error