1
Fork 0
mirror of https://github.com/Steffo99/twom.git synced 2024-11-21 23:54:26 +00:00

Set HomeserverFieldState.Error even when the URL is invalid

This commit is contained in:
Steffo 2023-11-18 05:25:44 +01:00
parent eb300b2285
commit 0c7718492c
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -77,6 +77,7 @@ fun HomeserverContents() {
} }
if(!(URLUtil.isHttpUrl(homeserver) || URLUtil.isHttpsUrl(homeserver))) { if(!(URLUtil.isHttpUrl(homeserver) || URLUtil.isHttpsUrl(homeserver))) {
homeserverFieldState = HomeserverFieldState.Error
homeserverUrlValid = false homeserverUrlValid = false
return@OnValueChange return@OnValueChange
} }