refactor: UIA registering

This commit is contained in:
Christian Pauly 2021-05-13 11:10:05 +02:00
commit dddd44a560
2 changed files with 10 additions and 63 deletions

View file

@ -155,7 +155,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
);
default:
await launch(
Matrix.of(context).client.homeserver.toString() +
client.homeserver.toString() +
'/_matrix/client/r0/auth/$stage/fallback/web?session=${uiaRequest.session}',
);
if (OkCancelResult.ok ==
@ -169,6 +169,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
return uiaRequest.completeStage(
AuthenticationData(session: uiaRequest.session),
);
} else {
return uiaRequest.cancel();
}
}
}