Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

Update locker access messages for clarity and consistency

AmanRajSinghMourya4caf35fa8a80
diff --git a/mobile/packages/accounts/lib/pages/login_pwd_verification_page.dart b/mobile/packages/accounts/lib/pages/login_pwd_verification_page.dart
index 30b0346d01..44811077da 100644
--- a/mobile/packages/accounts/lib/pages/login_pwd_verification_page.dart
+++ b/mobile/packages/accounts/lib/pages/login_pwd_verification_page.dart
@@ -114,10 +114,9 @@ class _LoginPasswordVerificationPageState
await _showContactSupportDialog(
context,
context.strings.oops,
- 'Sorry, this account doesn’t have Locker access yet.',
+ "Locker is available to existing Ente users. Sign up for Ente Photos or Auth to get started.",
);
- } else if (enteErrCode != null &&
- enteErrCode == 'LOCKER_ROLLOUT_LIMIT') {
+ } else if (enteErrCode != null && enteErrCode == 'LOCKER_ROLLOUT_LIMIT') {
await _showContactSupportDialog(
context,
"We're out of beta seats for now",
diff --git a/mobile/packages/accounts/lib/services/user_service.dart b/mobile/packages/accounts/lib/services/user_service.dart
index e7ad5304d1..b8a947d909 100644
--- a/mobile/packages/accounts/lib/services/user_service.dart
+++ b/mobile/packages/accounts/lib/services/user_service.dart
@@ -288,7 +288,8 @@ class UserService {
final response = await _enteDio.post("/users/logout");
if (response.statusCode == 200) {
await _config.logout();
- Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false);
+ await Navigator.of(context)
+ .pushNamedAndRemoveUntil('/', (route) => false);
} else {
throw Exception("Log out action failed");
}
@@ -297,7 +298,8 @@ class UserService {
// check if token is already invalid
if (e is DioException && e.response?.statusCode == 401) {
await _config.logout();
- Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false);
+ await Navigator.of(context)
+ .pushNamedAndRemoveUntil('/', (route) => false);
return;
}
//This future is for waiting for the dialog from which logout() is called
@@ -532,11 +534,10 @@ class UserService {
await showErrorDialog(
context,
context.strings.oops,
- 'Locker is available only to Ente photos paid users. Upgrade to a paid plan from Photos to use Locker',
+ "Locker is available to existing Ente users. Sign up for Ente Photos or Auth to get started.",
);
return;
- } else if (enteErrCode != null &&
- enteErrCode == 'LOCKER_ROLLOUT_LIMIT') {
+ } else if (enteErrCode != null && enteErrCode == 'LOCKER_ROLLOUT_LIMIT') {
await showErrorDialog(
context,
"We're out of beta seats for now",
@@ -949,10 +950,9 @@ class UserService {
showErrorDialog(
context,
context.strings.oops,
- 'Locker is available only to Ente photos paid users. Upgrade to a paid plan from Photos to use Locker',
+ "Locker is available to existing Ente users. Sign up for Ente Photos or Auth to get started.",
);
- } else if (enteErrCode != null &&
- enteErrCode == 'LOCKER_ROLLOUT_LIMIT') {
+ } else if (enteErrCode != null && enteErrCode == 'LOCKER_ROLLOUT_LIMIT') {
// ignore: unawaited_futures
showErrorDialog(
context,