fix: on cancel registration, pop future loading dialog (#3967)

This commit is contained in:
ggurdin 2025-09-12 12:32:21 -04:00 committed by GitHub
parent 3b3e1bfe4e
commit 4aa37c2d9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,6 +163,11 @@ class SignupPageController extends State<SignupPage> {
loadingAppleSSO = false;
loadingGoogleSSO = false;
});
if (e.toString().contains("Request has been canceled")) {
Navigator.of(context).pop();
return null;
}
return e is MatrixException
? e.errorMessage
: L10n.of(context).oopsSomethingWentWrong;