i18n for M_THREEPID_AUTH_FAILED

This commit is contained in:
Benoit Marty 2020-08-28 17:05:40 +02:00
parent 175a5ab824
commit 36a9b80040
2 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,9 @@ class DefaultErrorFormatter @Inject constructor(
&& throwable.error.message == "Email is already in use" -> {
stringProvider.getString(R.string.account_email_already_used_error)
}
throwable.error.code == MatrixError.M_THREEPID_AUTH_FAILED -> {
stringProvider.getString(R.string.error_threepid_auth_failed)
}
else -> {
throwable.error.message.takeIf { it.isNotEmpty() }
?: throwable.error.code.takeIf { it.isNotEmpty() }

View File

@ -685,6 +685,7 @@
<string name="settings_emails">Email addresses</string>
<string name="settings_phone_numbers">Phone numbers</string>
<string name="settings_remove_three_pid_confirmation_content">Remove %s?</string>
<string name="error_threepid_auth_failed">Ensure that you have clicked on the link in the email we have sent to you.</string>
<string name="settings_notification_advanced">Advanced Notification Settings</string>
<string name="settings_notification_by_event">Notification importance by event</string>