diff --git a/vector/src/main/java/im/vector/app/core/error/ErrorFormatter.kt b/vector/src/main/java/im/vector/app/core/error/ErrorFormatter.kt index 14939eaff9..2cd27e4ae5 100644 --- a/vector/src/main/java/im/vector/app/core/error/ErrorFormatter.kt +++ b/vector/src/main/java/im/vector/app/core/error/ErrorFormatter.kt @@ -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() } diff --git a/vector/src/main/res/values/strings.xml b/vector/src/main/res/values/strings.xml index c22dfc6be8..43a2f73947 100644 --- a/vector/src/main/res/values/strings.xml +++ b/vector/src/main/res/values/strings.xml @@ -685,6 +685,7 @@ Email addresses Phone numbers Remove %s? + Ensure that you have clicked on the link in the email we have sent to you. Advanced Notification Settings Notification importance by event