Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notification email description #1039

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading