SES-2229 Add ons unable to search error message

This commit is contained in:
Andrew 2024-06-26 20:15:08 +09:30
parent 761a983e0c
commit bae83d9ea6
2 changed files with 2 additions and 0 deletions

View File

@ -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)
}
}

View File

@ -1131,6 +1131,7 @@
<string name="accountIdYours">Your Account ID</string>
<string name="qrYoursDescription">Friends can message you by scanning your QR code.</string>
<string name="onsErrorNotRecognized">We couldnt recognize this ONS. Please check and try again.</string>
<string name="onsErrorUnableToSearch">We were unable to search for this ONS. Please try again later.</string>
<string name="this_is_your_account_id_other_users_can_scan_it_to_start_a_conversation_with_you">This is your Account ID. Other users can scan it to start a conversation with you.</string>
<string name="accountIdShare">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/</string>
<string name="this_qr_code_does_not_contain_an_account_id">This QR code does not contain an Account ID.</string>