mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
i18n deactivated account error
This commit is contained in:
parent
6e0095edb0
commit
5082defddf
@ -21,7 +21,7 @@ Build 🧱:
|
||||
-
|
||||
|
||||
Other changes:
|
||||
-
|
||||
- i18n deactivated account error
|
||||
|
||||
Changes in Element 1.0.0 (2020-07-15)
|
||||
===================================================
|
||||
|
@ -51,7 +51,7 @@ class DefaultErrorFormatter @Inject constructor(
|
||||
stringProvider.getString(R.string.login_error_unknown_host)
|
||||
is SSLPeerUnverifiedException ->
|
||||
stringProvider.getString(R.string.login_error_ssl_peer_unverified)
|
||||
is SSLException ->
|
||||
is SSLException ->
|
||||
stringProvider.getString(R.string.login_error_ssl_other)
|
||||
else ->
|
||||
stringProvider.getString(R.string.error_no_network)
|
||||
@ -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() }
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user