diff --git a/lib/views/sign_up_password.dart b/lib/views/sign_up_password.dart index fbd612be..a0c9a945 100644 --- a/lib/views/sign_up_password.dart +++ b/lib/views/sign_up_password.dart @@ -50,9 +50,7 @@ class _SignUpPasswordState extends State { await waitForLogin; } on MatrixException catch (exception) { if (exception.requireAdditionalAuthentication) { - final stages = exception.authenticationFlows - .firstWhere((a) => !a.stages.contains('m.login.email.identity')) - .stages; + final stages = exception.authenticationFlows.first.stages; final currentStage = exception.completedAuthenticationFlows == null ? stages.first