From 5559f005bb7b83caefd77c1bbb9803fd0fc40ab0 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Thu, 24 Aug 2023 14:50:18 -0600 Subject: [PATCH] Naming clarification --- clientapi/routing/routing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go index d59b6f666..d4aa1d08d 100644 --- a/clientapi/routing/routing.go +++ b/clientapi/routing/routing.go @@ -53,7 +53,7 @@ type WellKnownSlidingSyncProxy struct { } type WellKnownClientResponse struct { - HomeserverName WellKnownClientHomeserver `json:"m.homeserver"` + Homeserver WellKnownClientHomeserver `json:"m.homeserver"` SlidingSyncProxy *WellKnownSlidingSyncProxy `json:"org.matrix.msc3575.proxy,omitempty"` } @@ -114,7 +114,7 @@ func Setup( } wkMux.Handle("/client", httputil.MakeExternalAPI("wellknown", func(r *http.Request) util.JSONResponse { response := WellKnownClientResponse{ - HomeserverName: WellKnownClientHomeserver{cfg.Matrix.WellKnownClientName}, + Homeserver: WellKnownClientHomeserver{cfg.Matrix.WellKnownClientName}, } if cfg.Matrix.WellKnownSlidingSyncProxy != "" { response.SlidingSyncProxy = &WellKnownSlidingSyncProxy{