Naming clarification

This commit is contained in:
Devon Hudson 2023-08-24 14:50:18 -06:00
parent fad5300c5a
commit 5559f005bb
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -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{