i18n deactivated account error

This commit is contained in:
Benoit Marty 2020-07-17 17:23:48 +02:00
parent 6e0095edb0
commit 5082defddf
3 changed files with 6 additions and 2 deletions

View file

@ -21,7 +21,7 @@ Build 🧱:
-
Other changes:
-
- i18n deactivated account error
Changes in Element 1.0.0 (2020-07-15)
===================================================

View file

@ -84,6 +84,9 @@ class DefaultErrorFormatter @Inject constructor(
throwable.error.code == MatrixError.M_THREEPID_NOT_FOUND -> {
stringProvider.getString(R.string.login_reset_password_error_not_found)
}
throwable.error.code == MatrixError.M_USER_DEACTIVATED -> {
stringProvider.getString(R.string.auth_invalid_login_deactivated_account)
}
else -> {
throwable.error.message.takeIf { it.isNotEmpty() }
?: throwable.error.code.takeIf { it.isNotEmpty() }

View file

@ -2392,6 +2392,7 @@ Not all features in Riot are implemented in Element yet. Main missing (and comin
<string name="command_description_plain">Sends a message as plain text, without interpreting it as markdown</string>
<string name="auth_invalid_login_param_space_in_password">Incorrect username and/or password. The entered password starts or ends with spaces, please check it.</string>
<string name="auth_invalid_login_deactivated_account">This account has been deactivated.</string>
<string name="room_message_placeholder">Message…</string>