π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor: replace showErrorDialog with showAlertBottomSheet for improved error handling
AmanRajSinghMouryafcddccdef367
diff --git a/mobile/packages/accounts/lib/services/user_service.dart b/mobile/packages/accounts/lib/services/user_service.dartindex c51a960839..7d917277ef 100644--- a/mobile/packages/accounts/lib/services/user_service.dart+++ b/mobile/packages/accounts/lib/services/user_service.dart@@ -993,20 +993,22 @@ class UserService {);} else {// ignore: unawaited_futures- showErrorDialog(+ showAlertBottomSheet(context,- context.strings.oops,- context.strings.somethingWentWrongPleaseTryAgain,+ title: context.strings.oops,+ message: context.strings.somethingWentWrongPleaseTryAgain,+ assetPath: 'assets/warning-grey.png',);}} catch (e) {await dialog.hide();_logger.severe(e);// ignore: unawaited_futures- showErrorDialog(+ showAlertBottomSheet(context,- context.strings.oops,- context.strings.somethingWentWrongPleaseTryAgain,+ title: context.strings.oops,+ message: context.strings.somethingWentWrongPleaseTryAgain,+ assetPath: 'assets/warning-grey.png',);} finally {await dialog.hide();@@ -1042,10 +1044,11 @@ class UserService {);} catch (e) {await dialog.hide();- await showErrorDialog(+ await showAlertBottomSheet(context,- context.strings.incorrectRecoveryKey,- context.strings.theRecoveryKeyYouEnteredIsIncorrect,+ title: context.strings.incorrectRecoveryKey,+ message: context.strings.theRecoveryKeyYouEnteredIsIncorrect,+ assetPath: 'assets/warning-grey.png',);return;}@@ -1094,20 +1097,22 @@ class UserService {);} else {// ignore: unawaited_futures- showErrorDialog(+ showAlertBottomSheet(context,- context.strings.oops,- context.strings.somethingWentWrongPleaseTryAgain,+ title: context.strings.oops,+ message: context.strings.somethingWentWrongPleaseTryAgain,+ assetPath: 'assets/warning-grey.png',);}} catch (e) {await dialog.hide();_logger.severe(e);// ignore: unawaited_futures- showErrorDialog(+ showAlertBottomSheet(context,- context.strings.oops,- context.strings.somethingWentWrongPleaseTryAgain,+ title: context.strings.oops,+ message: context.strings.somethingWentWrongPleaseTryAgain,+ assetPath: 'assets/warning-grey.png',);} finally {await dialog.hide();