π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Guard account recovery dialogs
Neeraj Guptabcd92148d4dd
diff --git a/mobile/apps/photos/lib/ui/account/login_pwd_verification_page.dart b/mobile/apps/photos/lib/ui/account/login_pwd_verification_page.dartindex 43dadb7e51..74236ade0c 100644--- a/mobile/apps/photos/lib/ui/account/login_pwd_verification_page.dart+++ b/mobile/apps/photos/lib/ui/account/login_pwd_verification_page.dart@@ -217,7 +217,7 @@ class _LoginPasswordVerificationPageStatebody: AppLocalizations.of(context).recreatePasswordBody,firstButtonLabel: AppLocalizations.of(context).useRecoveryKey,);- if (dialogChoice!.action == ButtonAction.first) {+ if (dialogChoice?.action == ButtonAction.first && context.mounted) {await UserService.instance.sendOtt(context,email!,@@ -248,7 +248,7 @@ class _LoginPasswordVerificationPageStatefirstButtonLabel: AppLocalizations.of(context).contactSupport,secondButtonLabel: AppLocalizations.of(context).ok,);- if (dialogChoice!.action == ButtonAction.first) {+ if (dialogChoice?.action == ButtonAction.first && context.mounted) {await sendLogs(context,AppLocalizations.of(context).contactSupport,diff --git a/mobile/apps/photos/lib/ui/account/password_entry_page.dart b/mobile/apps/photos/lib/ui/account/password_entry_page.dartindex 129a4e964d..46e793a9d9 100644--- a/mobile/apps/photos/lib/ui/account/password_entry_page.dart+++ b/mobile/apps/photos/lib/ui/account/password_entry_page.dart@@ -419,6 +419,7 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {} catch (e) {_logger.severe(e);await dialog.hide();+ if (!mounted) return;if (e is UnsupportedError) {// ignore: unawaited_futuresshowAlertBottomSheet(