Skip to content

Commit

Permalink
Add notification email description
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Apr 30, 2024
1 parent 680e0f4 commit 26d49c9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/1037.improvements
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Améliorer la compréhension du fonctionnement de la fonctionnalité notification par courriel.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
<string name="tchap_settings_hide_from_users_directory_title">Inscrire mon compte sur liste rouge</string>
<string name="tchap_settings_hide_from_users_directory_summary">Les autres utilisateurs ne pourront pas découvrir mon compte lors de leurs recherches</string>
<string name="tchap_settings_show_external_user_in_users_directory_prompt">Pour désactiver cette option, vous devez accepter que votre adresse e\u2011mail soit visible des autres utilisateurs lors de leurs recherches.</string>
<string name="tchap_settings_notification_emails_summary">Recevez un e\u2011mail si au moins un message reste non lu pendant 72h.</string>

<!-- Verification -->
<string name="tchap_verification_conclusion_not_secure">La vérification de votre nouvelle session a échoué.</string>
Expand Down
1 change: 1 addition & 0 deletions library/ui-strings/src/main/res/values/strings_tchap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
<string name="tchap_settings_hide_from_users_directory_title">Subscribe to the red list.</string>
<string name="tchap_settings_hide_from_users_directory_summary">"Other users won't be able to find my account in their search results."</string>
<string name="tchap_settings_show_external_user_in_users_directory_prompt">To disable this option, you must accept that your email address is visible to the other users.</string>
<string name="tchap_settings_notification_emails_summary">Receive an email if at least one message has not been read for 72 hours.</string>

<!-- Verification -->
<string name="tchap_verification_conclusion_not_secure">Failed to verify your new session.</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 26d49c9

Please sign in to comment.