From bce30e32a049b3ee76081c8d3881a3820b0e7341 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 20 Mar 2020 15:57:55 +0200 Subject: Update mautrix-go to ignore 404 errors in .well-known resolution --- ui/view-login.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/view-login.go b/ui/view-login.go index b26fb3a..9eb8226 100644 --- a/ui/view-login.go +++ b/ui/view-login.go @@ -112,10 +112,10 @@ func (view *LoginView) resolveWellKnown() { if err != nil { view.homeserver.SetText("") view.Error(err.Error()) - return + } else if resp != nil { + view.homeserver.SetText(resp.Homeserver.BaseURL) + view.parent.Render() } - view.homeserver.SetText(resp.Homeserver.BaseURL) - view.parent.Render() } func (view *LoginView) focusChanged(from, to mauview.Component) { -- cgit v1.2.3