Fix keyboard dose not close when enter username then login success on iOS

This commit is contained in:
dab246
2024-11-08 16:46:33 +07:00
committed by Dat H. Pham
parent d3aaf47e2c
commit 26e7eed5db
@@ -471,6 +471,8 @@ class LoginController extends ReloadableController {
void invokeDNSLookupToGetJmapUrl() {
log('LoginController::invokeDNSLookupToGetJmapUrl:_username $_username');
FocusManager.instance.primaryFocus?.unfocus();
if (_username == null) {
consumeState(Stream.value(Left(AuthenticationUserFailure(CanNotFoundUserName()))));
} else {