Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Recovery copy changes

Neeraj Gupta815d9e8972b7
diff --git a/mobile/lib/emergency/emergency_page.dart b/mobile/lib/emergency/emergency_page.dart
index db1c153641..d219c50834 100644
--- a/mobile/lib/emergency/emergency_page.dart
+++ b/mobile/lib/emergency/emergency_page.dart
@@ -522,22 +522,21 @@ class _EmergencyPageState extends State<EmergencyPage> {
},
isInAlert: true,
),
- if (flagService.internalUser)
- ButtonWidget(
- labelText: "Approve recovery (internal)",
- buttonType: ButtonType.primary,
- buttonSize: ButtonSize.large,
- buttonAction: ButtonAction.second,
- shouldStickToDarkTheme: true,
- onTap: () async {
- await EmergencyContactService.instance.approveRecovery(session);
- if (mounted) {
- setState(() {});
- }
- unawaited(_fetchData());
- },
- isInAlert: true,
- ),
+ ButtonWidget(
+ labelText: "Approve recovery (to be removed)",
+ buttonType: ButtonType.primary,
+ buttonSize: ButtonSize.large,
+ buttonAction: ButtonAction.second,
+ shouldStickToDarkTheme: true,
+ onTap: () async {
+ await EmergencyContactService.instance.approveRecovery(session);
+ if (mounted) {
+ setState(() {});
+ }
+ unawaited(_fetchData());
+ },
+ 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.dart
index b5be0f20e0..3c8843a22d 100644
--- a/mobile/lib/emergency/other_contact_page.dart
+++ b/mobile/lib/emergency/other_contact_page.dart
@@ -168,27 +168,31 @@ class _OtherContactPageState extends State<OtherContactPage> {
// isTopBorderRadiusRemoved: true,
),
if (recoverySession != null && recoverySession!.status == "READY")
- ButtonWidget(
- // icon: Icons.start_outlined,
- buttonType: ButtonType.primary,
- labelText: context.l10n.recoverAccount,
- onTap: () async {
- try {
- 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();
- }
- },
+ Padding(
+ padding: const EdgeInsets.only(bottom: 12.0),
+ child: ButtonWidget(
+ buttonType: ButtonType.primary,
+ labelText: context.l10n.recoverAccount,
+ onTap: () async {
+ try {
+ 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();
+ }
+ },
+ ),
),
- if (recoverySession != null && recoverySession!.status == "WAITING")
+ if (recoverySession != null &&
+ (recoverySession!.status == "WAITING" ||
+ recoverySession!.status == "READY"))
ButtonWidget(
- // icon: Icons.start_outlined,
buttonType: ButtonType.neutral,
labelText: S.of(context).cancelAccountRecovery,
shouldSurfaceExecutionStates: false,
diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml
index 7864e8bed2..98fb4e1ac3 100644
--- a/mobile/pubspec.yaml
+++ b/mobile/pubspec.yaml
@@ -12,7 +12,7 @@ description: ente photos application
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
-version: 0.9.67+967
+version: 0.9.68+968
publish_to: none
environment: