aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-03-20 15:57:55 +0200
committerTulir Asokan <tulir@maunium.net>2020-03-20 16:00:30 +0200
commitbce30e32a049b3ee76081c8d3881a3820b0e7341 (patch)
treef7c7ea8bf3c46f5eeb97fabedf3526dac7f7e2d4 /ui
parent6d2b2ed5313753783a387db0b762ec392b80b41a (diff)
Update mautrix-go to ignore 404 errors in .well-known resolution
Diffstat (limited to 'ui')
-rw-r--r--ui/view-login.go6
1 files changed, 3 insertions, 3 deletions
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) {