Skip to content

Commit

Permalink
(android) Fix missing lnurl errors from the send-rework
Browse files Browse the repository at this point in the history
  • Loading branch information
dpad85 committed Oct 22, 2024
1 parent 072b35c commit 011c8b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,7 @@ fun getRemoteErrorMessage(
is LnurlError.RemoteFailure.CouldNotConnect -> annotatedStringResource(id = R.string.lnurl_error_remote_connection, error.origin)
is LnurlError.RemoteFailure.Detailed -> annotatedStringResource(id = R.string.lnurl_error_remote_details, error.origin, error.reason)
is LnurlError.RemoteFailure.Unreadable -> annotatedStringResource(id = R.string.lnurl_error_remote_unreadable, error.origin)
is LnurlError.RemoteFailure.IsWebsite -> TODO()
is LnurlError.RemoteFailure.LightningAddressError -> TODO()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ private fun ScanErrorView(
is LnurlError.RemoteFailure.CouldNotConnect -> stringResource(R.string.lnurl_error_remote_connection, reason.url.host)
is LnurlError.RemoteFailure.Detailed -> stringResource(R.string.lnurl_error_remote_details, reason.url.host, error.reason)
is LnurlError.RemoteFailure.Unreadable -> stringResource(R.string.lnurl_error_remote_unreadable, reason.url.host)
is LnurlError.RemoteFailure.IsWebsite -> TODO()
is LnurlError.RemoteFailure.LightningAddressError -> TODO()
}
is Scan.BadRequestReason.InvalidLnurl -> stringResource(R.string.scan_error_lnurl_invalid)
is Scan.BadRequestReason.UnsupportedLnurl -> stringResource(R.string.scan_error_lnurl_unsupported)
Expand Down

0 comments on commit 011c8b8

Please sign in to comment.