Skip to content

Commit

Permalink
(android) Use payer note as the description for outgoing payments
Browse files Browse the repository at this point in the history
  • Loading branch information
dpad85 committed Jun 19, 2024
1 parent 6bf78e8 commit 023e149
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fun WalletPayment.smartDescription(context: Context): String? = when (this) {
is LightningOutgoingPayment -> when (val details = this.details) {
is LightningOutgoingPayment.Details.Normal -> details.paymentRequest.desc
is LightningOutgoingPayment.Details.SwapOut -> context.getString(R.string.paymentdetails_desc_swapout, details.address)
is LightningOutgoingPayment.Details.Blinded -> details.paymentRequest.description
is LightningOutgoingPayment.Details.Blinded -> details.paymentRequest.invoiceRequest.payerNote ?: details.paymentRequest.description
}
is IncomingPayment -> when (val origin = this.origin) {
is IncomingPayment.Origin.Invoice -> origin.paymentRequest.description
Expand Down

0 comments on commit 023e149

Please sign in to comment.