π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: update other contact page
Prateek Sunal789d77747c3a
diff --git a/mobile/apps/photos/lib/emergency/other_contact_page.dart b/mobile/apps/photos/lib/emergency/other_contact_page.dartindex 9374169374..efbe7192ab 100644--- a/mobile/apps/photos/lib/emergency/other_contact_page.dart+++ b/mobile/apps/photos/lib/emergency/other_contact_page.dart@@ -73,7 +73,9 @@ class _OtherContactPageState extends State<OtherContactPage> {_logger.info('session ${widget.emergencyInfo}');if (recoverySession != null) {final dateTime = DateTime.now().add(- Duration(microseconds: recoverySession!.waitTill),+ Duration(+ microseconds: recoverySession!.waitTill,+ ),);waitTill = getFormattedTime(context, dateTime);}@@ -91,14 +93,17 @@ class _OtherContactPageState extends State<OtherContactPage> {child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- const SizedBox(height: 12),- TitleBarTitleWidget(title: context.l10n.recoverAccount),+ const SizedBox(+ height: 12,+ ),+ TitleBarTitleWidget(+ title: context.l10n.recoverAccount,+ ),Text(accountEmail,textAlign: TextAlign.left,- style: textTheme.small.copyWith(- color: colorScheme.textMuted,- ),+ style:+ textTheme.small.copyWith(color: colorScheme.textMuted),),],),@@ -111,15 +116,15 @@ class _OtherContactPageState extends State<OtherContactPage> {style: textTheme.body,): (recoverySession!.status == "READY"- ? Text(- context.l10n.recoveryReady(accountEmail),- style: textTheme.body,- )- : Text(- "You can recover $accountEmail's"- " account after $waitTill.",- style: textTheme.bodyBold,- )),+ ? Text(+ context.l10n.recoveryReady(accountEmail),+ style: textTheme.body,+ )+ : Text(+ "You can recover $accountEmail's"+ " account after $waitTill.",+ style: textTheme.bodyBold,+ )),const SizedBox(height: 24),if (recoverySession == null)ButtonWidget(@@ -156,10 +161,8 @@ class _OtherContactPageState extends State<OtherContactPage> {);}} catch (e) {- showGenericErrorDialog(- context: context,- error: e,- ).ignore();+ showGenericErrorDialog(context: context, error: e)+ .ignore();}}}@@ -174,20 +177,16 @@ class _OtherContactPageState extends State<OtherContactPage> {labelText: context.l10n.recoverAccount,onTap: () async {try {- final (- String key,- KeyAttributes attributes,- ) = await EmergencyContactService.instance- .getRecoveryInfo(recoverySession!);+ final (String key, KeyAttributes attributes) =+ await EmergencyContactService.instance+ .getRecoveryInfo(recoverySession!);routeToPage(context,RecoverOthersAccount(key, attributes, recoverySession!),).ignore();} catch (e) {- showGenericErrorDialog(- context: context,- error: e,- ).ignore();+ showGenericErrorDialog(context: context, error: e)+ .ignore();}},),@@ -208,9 +207,8 @@ class _OtherContactPageState extends State<OtherContactPage> {AppLocalizations.of(context).cancelAccountRecoveryBody,isCritical: true,firstButtonOnTap: () async {- await EmergencyContactService.instance.stopRecovery(- recoverySession!,- );+ await EmergencyContactService.instance+ .stopRecovery(recoverySession!);},);if (actionResult?.action == ButtonAction.first) {@@ -275,8 +273,7 @@ class _OtherContactPageState extends State<OtherContactPage> {isInAlert: true,),],- body:- "Are you sure your want to stop being a trusted "+ body: "Are you sure your want to stop being a trusted ""contact for $accountEmail?",title: context.l10n.remove,actionSheetType: ActionSheetType.defaultActionSheet,