Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Copy change

Neeraj Gupta33c497e1013c
diff --git a/mobile/lib/emergency/other_contact_page.dart b/mobile/lib/emergency/other_contact_page.dart
index 3b175ac1d5..7e6344452e 100644
--- a/mobile/lib/emergency/other_contact_page.dart
+++ b/mobile/lib/emergency/other_contact_page.dart
@@ -1,6 +1,7 @@
import "package:collection/collection.dart";
import "package:flutter/material.dart";
import "package:logging/logging.dart";
+import "package:photos/core/configuration.dart";
import "package:photos/emergency/emergency_service.dart";
import "package:photos/emergency/model.dart";
import "package:photos/emergency/recover_others_account.dart";
@@ -114,11 +115,16 @@ class _OtherContactPageState extends State<OtherContactPage> {
" after starting the recovery process.",
style: textTheme.body,
)
- : Text(
- "You can recover $accountEmail's"
- " account after $waitTill.",
- style: textTheme.bodyBold,
- ),
+ : (recoverySession!.status == "READY"
+ ? Text(
+ "You can recover $accountEmail's account now.\nPlease note, you can only recover the account once. You will need to start the recovery process again to recover the account again.",
+ style: textTheme.body,
+ )
+ : Text(
+ "You can recover $accountEmail's"
+ " account after $waitTill.",
+ style: textTheme.bodyBold,
+ )),
const SizedBox(height: 24),
if (recoverySession == null)
ButtonWidget(
@@ -148,6 +154,7 @@ class _OtherContactPageState extends State<OtherContactPage> {
context.l10n.recoveryInitiated,
context.l10n.recoveryInitiatedDesc(
widget.contact.recoveryNoticeInDays,
+ Configuration.instance.getEmail()!,
),
);
}
diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dart
index 211aed2615..226b70dcdc 100644
--- a/mobile/lib/generated/intl/messages_en.dart
+++ b/mobile/lib/generated/intl/messages_en.dart
@@ -157,8 +157,8 @@ class MessageLookup extends MessageLookupByLibrary {
static String m52(storeName) => "Rate us on ${storeName}";
- static String m83(days) =>
- "You can access the account after ${days} days. You will get a notification on your registered email.";
+ static String m83(days, email) =>
+ "You can access the account after ${days} days. You can access the account after 30 days. A notification will be sent to ${email}.";
static String m53(storageInGB) =>
"3. Both of you get ${storageInGB} GB* free";
diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dart
index 6389abee4a..fc7a1af081 100644
--- a/mobile/lib/generated/l10n.dart
+++ b/mobile/lib/generated/l10n.dart
@@ -10639,13 +10639,13 @@ class S {
);
}
- /// `You can access the account after {days} days. You will get a notification on your registered email.`
- String recoveryInitiatedDesc(int days) {
+ /// `You can access the account after {days} days. You can access the account after 30 days. A notification will be sent to {email}.`
+ String recoveryInitiatedDesc(int days, String email) {
return Intl.message(
- 'You can access the account after $days days. You will get a notification on your registered email.',
+ 'You can access the account after $days days. You can access the account after 30 days. A notification will be sent to $email.',
name: 'recoveryInitiatedDesc',
desc: '',
- args: [days],
+ args: [days, email],
);
}
diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arb
index 89e6d473b0..3bda3a4f43 100644
--- a/mobile/lib/l10n/intl_en.arb
+++ b/mobile/lib/l10n/intl_en.arb
@@ -1530,12 +1530,16 @@
"recoveryWarning": "A trusted contact is trying to access your account",
"rejectRecovery": "Reject recovery",
"recoveryInitiated": "Recovery initiated",
- "recoveryInitiatedDesc": "You can access the account after {days} days. You will get a notification on your registered email.",
+ "recoveryInitiatedDesc": "You can access the account after {days} days. You can access the account after 30 days. A notification will be sent to {email}.",
"@recoveryInitiatedDesc": {
"placeholders": {
"days": {
"type": "int",
"example": "30"
+ },
+ "email": {
+ "type": "String",
+ "example": "[email protected]"
}
}
},