mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
SES-2229 Add ons unable to search error message
This commit is contained in:
parent
761a983e0c
commit
bae83d9ea6
@ -100,6 +100,7 @@ internal class NewMessageViewModel @Inject constructor(
|
|||||||
|
|
||||||
private fun Exception.toMessage() = when (this) {
|
private fun Exception.toMessage() = when (this) {
|
||||||
is SnodeAPI.Error.Generic -> application.getString(R.string.onsErrorNotRecognized)
|
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)
|
else -> localizedMessage ?: application.getString(R.string.fragment_enter_public_key_error_message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1131,6 +1131,7 @@
|
|||||||
<string name="accountIdYours">Your Account ID</string>
|
<string name="accountIdYours">Your Account ID</string>
|
||||||
<string name="qrYoursDescription">Friends can message you by scanning your QR code.</string>
|
<string name="qrYoursDescription">Friends can message you by scanning your QR code.</string>
|
||||||
<string name="onsErrorNotRecognized">We couldn’t recognize this ONS. Please check and try again.</string>
|
<string name="onsErrorNotRecognized">We couldn’t 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="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="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>
|
<string name="this_qr_code_does_not_contain_an_account_id">This QR code does not contain an Account ID.</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user