refactor: UIA registering
This commit is contained in:
parent
e38a9db4a0
commit
dddd44a560
2 changed files with 10 additions and 63 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue