diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/start/newmessage/NewMessageViewModel.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/start/newmessage/NewMessageViewModel.kt index 732aca2c6d..31645999f7 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/start/newmessage/NewMessageViewModel.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/start/newmessage/NewMessageViewModel.kt @@ -100,6 +100,7 @@ internal class NewMessageViewModel @Inject constructor( private fun Exception.toMessage() = when (this) { is SnodeAPI.Error.Generic -> application.getString(R.string.onsErrorNotRecognized) + is TimeoutCancellationException -> application.getString(R.string.onsErrorUnableToSearch) else -> localizedMessage ?: application.getString(R.string.fragment_enter_public_key_error_message) } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 37f8001258..8a97d54b11 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1131,6 +1131,7 @@ Your Account ID Friends can message you by scanning your QR code. We couldn’t recognize this ONS. Please check and try again. + We were unable to search for this ONS. Please try again later. This is your Account ID. Other users can scan it to start a conversation with you. Hey, I\'ve been using Session to chat with complete privacy and security. Come join me! My Account ID is \n\n%1$s\n\nDownload it at https://getsession.org/ This QR code does not contain an Account ID.