Skip to content

Commit

Permalink
Hotfix: Can't close dialog when using TWP
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Dec 5, 2024
1 parent ce53545 commit 122a0b2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/pages/twake_welcome/twake_welcome.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class TwakeWelcomeController extends State<TwakeWelcome> with ConnectPageMixin {
);
Logs().d("TwakeIdController:_redirectRegistrationUrl: URI - $uri");
await handleTokenFromRegistrationSite(matrix: matrix, uri: uri);
Logs().d("TwakeIdController:_redirectRegistrationUrl: DONE");
TwakeDialog.hideLoadingDialog(context);
} catch (e) {
Logs().e("TwakeIdController::_redirectRegistrationUrl: $e");
TwakeDialog.hideLoadingDialog(context);
Expand Down Expand Up @@ -140,12 +142,6 @@ class TwakeWelcomeController extends State<TwakeWelcome> with ConnectPageMixin {
).openUrlInAppBrowser();
}

@override
void dispose() {
TwakeDialog.hideLoadingDialog(context);
super.dispose();
}

@override
Widget build(BuildContext context) {
return TwakeWelcomeView(
Expand Down

0 comments on commit 122a0b2

Please sign in to comment.