From 7e5eae573eb75ba9260acf47ccebc7b40861949e Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 9 Apr 2021 17:04:08 +0200 Subject: [PATCH] fix: Support for email registration --- lib/views/sign_up_password.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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