From ae9999728cdcc51f501d335a9e25eb2c2ea6c620 Mon Sep 17 00:00:00 2001 From: yostyle Date: Tue, 30 Apr 2024 19:16:30 +0200 Subject: [PATCH] Add notification email description --- changelog.d/1037.improvements | 1 + library/ui-strings/src/main/res/values-fr/strings_tchap.xml | 1 + library/ui-strings/src/main/res/values/strings_tchap.xml | 1 + .../notifications/VectorSettingsNotificationFragment.kt | 2 ++ 4 files changed, 5 insertions(+) create mode 100644 changelog.d/1037.improvements diff --git a/changelog.d/1037.improvements b/changelog.d/1037.improvements new file mode 100644 index 0000000000..a77945115d --- /dev/null +++ b/changelog.d/1037.improvements @@ -0,0 +1 @@ +Améliorer la compréhension du fonctionnement de la fonctionnalité notification par courriel. \ No newline at end of file diff --git a/library/ui-strings/src/main/res/values-fr/strings_tchap.xml b/library/ui-strings/src/main/res/values-fr/strings_tchap.xml index 23579117e4..c00f8ce80d 100644 --- a/library/ui-strings/src/main/res/values-fr/strings_tchap.xml +++ b/library/ui-strings/src/main/res/values-fr/strings_tchap.xml @@ -111,6 +111,7 @@ Inscrire mon compte sur liste rouge Les autres utilisateurs ne pourront pas découvrir mon compte lors de leurs recherches Pour désactiver cette option, vous devez accepter que votre adresse e\u2011mail soit visible des autres utilisateurs lors de leurs recherches. + Recevez un e\u2011mail si au moins un message reste non lu pendant 72h. La vérification de votre nouvelle session a échoué. diff --git a/library/ui-strings/src/main/res/values/strings_tchap.xml b/library/ui-strings/src/main/res/values/strings_tchap.xml index c65803d58e..61eb61a9be 100644 --- a/library/ui-strings/src/main/res/values/strings_tchap.xml +++ b/library/ui-strings/src/main/res/values/strings_tchap.xml @@ -111,6 +111,7 @@ Subscribe to the red list. "Other users won't be able to find my account in their search results." To disable this option, you must accept that your email address is visible to the other users. + Receive an email if at least one message has not been read for 72 hours. Failed to verify your new session. diff --git a/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsNotificationFragment.kt b/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsNotificationFragment.kt index db340c3e73..5d126eda09 100644 --- a/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsNotificationFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsNotificationFragment.kt @@ -269,6 +269,8 @@ class VectorSettingsNotificationFragment : emails.forEach { (emailPid, isEnabled) -> val pref = VectorSwitchPreference(requireContext()) pref.title = resources.getString(R.string.settings_notification_emails_enable_for_email, emailPid.email) + // Tchap: Add notification email description + pref.summary = resources.getString(R.string.tchap_settings_notification_emails_summary) pref.isChecked = isEnabled pref.setTransactionalSwitchChangeListener(lifecycleScope) { isChecked -> if (isChecked) {