π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
extract strings
Neeraj Gupta8db40c5c58a2
diff --git a/mobile/lib/emergency/emergency_page.dart b/mobile/lib/emergency/emergency_page.dartindex 9b0da1eede..430f5731a6 100644--- a/mobile/lib/emergency/emergency_page.dart+++ b/mobile/lib/emergency/emergency_page.dart@@ -110,11 +110,10 @@ class _EmergencyPageState extends State<EmergencyPage> {(context, index) {if (index == 0) {return Padding(- padding: const EdgeInsets.only(bottom: 8.0),+ padding: const EdgeInsets.only(bottom: 16.0),child: NotificationWidget(startIcon: Icons.warning_amber_rounded,- text: "Your trusted contact is trying to "- "access your account",+ text: context.l10n.recoveryWarning,actionIcon: null,onTap: () {},),@@ -148,7 +147,11 @@ class _EmergencyPageState extends State<EmergencyPage> {if (info != null)SliverPadding(padding: const EdgeInsets.only(- top: 16, left: 16, right: 16, bottom: 8),+ top: 16,+ left: 16,+ right: 16,+ bottom: 8,+ ),sliver: SliverList(delegate: SliverChildBuilderDelegate((context, index) {@@ -479,7 +482,7 @@ class _EmergencyPageState extends State<EmergencyPage> {),],body:- "You have been invited to be a trusted contact by ${contact.user.email}",+ "You have been invited to be a legacy contact by ${contact.user.email}",actionSheetType: ActionSheetType.defaultActionSheet,);return;@@ -491,7 +494,7 @@ class _EmergencyPageState extends State<EmergencyPage> {context: context,buttons: [ButtonWidget(- labelText: "Reject Recovery",+ labelText: context.l10n.rejectRecovery,buttonSize: ButtonSize.large,shouldStickToDarkTheme: true,buttonType: ButtonType.critical,@@ -503,22 +506,22 @@ class _EmergencyPageState extends State<EmergencyPage> {if (mounted) {setState(() {});}- _fetchData();+ _fetchData().ignore();},isInAlert: true,),- if (kDebugMode)- ButtonWidget(- labelText: "Approve Recovery",- buttonType: ButtonType.primary,- buttonSize: ButtonSize.large,- buttonAction: ButtonAction.second,- shouldStickToDarkTheme: true,- onTap: () async {- showToast(context, "Coming soon for internal users");- },- isInAlert: true,- ),+ // if (kDebugMode)+ // ButtonWidget(+ // labelText: "Approve recovery",+ // buttonType: ButtonType.primary,+ // buttonSize: ButtonSize.large,+ // buttonAction: ButtonAction.second,+ // shouldStickToDarkTheme: true,+ // onTap: () async {+ // showToast(context, "Coming soon for internal users");+ // },+ // isInAlert: true,+ // ),ButtonWidget(labelText: S.of(context).cancel,buttonType: ButtonType.tertiary,diff --git a/mobile/lib/emergency/other_contact_page.dart b/mobile/lib/emergency/other_contact_page.dartindex 609dd4cb2a..9228a4057e 100644--- a/mobile/lib/emergency/other_contact_page.dart+++ b/mobile/lib/emergency/other_contact_page.dart@@ -186,12 +186,12 @@ class _OtherContactPageState extends State<OtherContactPage> {body: S.of(context).cancelAccountRecoveryBody,isCritical: true,firstButtonOnTap: () async {- EmergencyContactService.instance+ await EmergencyContactService.instance.stopRecovery(recoverySession!);},);if (actionResult?.action == ButtonAction.first) {- _fetchData();+ _fetchData().ignore();}},),@@ -217,6 +217,7 @@ class _OtherContactPageState extends State<OtherContactPage> {body: "Are you sure your want to stop being a trusted ""contact for $accountEmail?",isCritical: true,+firstButtonOnTap: () async {try {await EmergencyContactService.instance.updateContact(diff --git a/mobile/lib/emergency/recover_others_account.dart b/mobile/lib/emergency/recover_others_account.dartindex 7e639bdb9a..cf829dbce5 100644--- a/mobile/lib/emergency/recover_others_account.dart+++ b/mobile/lib/emergency/recover_others_account.dart@@ -23,8 +23,8 @@ class RecoverOthersAccount extends StatefulWidget {this.recoveryKey,this.attributes,this.sessions, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<RecoverOthersAccount> createState() => _RecoverOthersAccountState();diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dartindex be4e59bb03..882d98c025 100644--- a/mobile/lib/generated/intl/messages_en.dart+++ b/mobile/lib/generated/intl/messages_en.dart@@ -1366,6 +1366,8 @@ class MessageLookup extends MessageLookupByLibrary {"Your recovery key is the only way to recover your photos if you forget your password. You can find your recovery key in Settings > Account.\n\nPlease enter your recovery key here to verify that you have saved it correctly."),"recoverySuccessful":MessageLookupByLibrary.simpleMessage("Recovery successful!"),+ "recoveryWarning": MessageLookupByLibrary.simpleMessage(+ "A trusted contact is trying to access your account"),"recreatePasswordBody": MessageLookupByLibrary.simpleMessage("The current device is not powerful enough to verify your password, but we can regenerate in a way that works with all devices.\n\nPlease login using your recovery key and regenerate your password (you can use the same one again if you wish)."),"recreatePasswordTitle":@@ -1384,6 +1386,8 @@ class MessageLookup extends MessageLookupByLibrary {"referrals": MessageLookupByLibrary.simpleMessage("Referrals"),"referralsAreCurrentlyPaused": MessageLookupByLibrary.simpleMessage("Referrals are currently paused"),+ "rejectRecovery":+ MessageLookupByLibrary.simpleMessage("Reject recovery"),"remindToEmptyDeviceTrash": MessageLookupByLibrary.simpleMessage("Also empty \"Recently Deleted\" from \"Settings\" -> \"Storage\" to claim the freed space"),"remindToEmptyEnteTrash": MessageLookupByLibrary.simpleMessage(diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dartindex 939c25676e..f7f7990382 100644--- a/mobile/lib/generated/l10n.dart+++ b/mobile/lib/generated/l10n.dart@@ -10609,6 +10609,26 @@ class S {);}+ /// `A trusted contact is trying to access your account`+ String get recoveryWarning {+ return Intl.message(+ 'A trusted contact is trying to access your account',+ name: 'recoveryWarning',+ desc: '',+ args: [],+ );+ }++ /// `Reject recovery`+ String get rejectRecovery {+ return Intl.message(+ 'Reject recovery',+ name: 'rejectRecovery',+ desc: '',+ args: [],+ );+ }+/// `Cancel recovery`String get cancelAccountRecovery {return Intl.message(diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arbindex 2d0507a95b..8485e552e7 100644--- a/mobile/lib/l10n/intl_en.arb+++ b/mobile/lib/l10n/intl_en.arb@@ -1527,6 +1527,8 @@"trustedContacts": "Trusted contacts","addTrustedContact": "Add Trusted Contact","removeInvite": "Remove invite",+ "recoveryWarning": "A trusted contact is trying to access your account",+ "rejectRecovery": "Reject recovery","cancelAccountRecovery": "Cancel recovery","cancelAccountRecoveryBody": "Are you sure you want to cancel recovery?","startAccountRecoveryTitle": "Start recovery",