File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
phoenix-ios/phoenix-ios/kotlin
phoenix-shared/src/iosMain/kotlin/fr/acinq/phoenix/utils Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,11 @@ extension WalletPaymentInfo {
7676
7777 if let lightningPayment = outgoingPayment as? Lightning_kmpLightningOutgoingPayment {
7878
79- if let normal = lightningPayment. details. asNormal ( ) {
80- return sanitize ( normal. paymentRequest. desc)
79+ if let bolt11 = lightningPayment. details. asNormal ( ) {
80+ return sanitize ( bolt11. paymentRequest. desc)
81+
82+ } else if let bolt12 = lightningPayment. details. asBlinded ( ) {
83+ return sanitize ( bolt12. paymentRequest. description_)
8184
8285 } else if let swapOut = lightningPayment. details. asSwapOut ( ) {
8386 return sanitize ( swapOut. address)
Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ fun LightningOutgoingPayment.explainAsFinalFailure(): FinalFailure? {
9494fun LightningOutgoingPayment.Details.asNormal (): LightningOutgoingPayment .Details .Normal ? =
9595 (this as ? LightningOutgoingPayment .Details .Normal )
9696
97+ fun LightningOutgoingPayment.Details.asBlinded (): LightningOutgoingPayment .Details .Blinded ? =
98+ (this as ? LightningOutgoingPayment .Details .Blinded )
99+
97100@Suppress(" DEPRECATION" )
98101fun LightningOutgoingPayment.Details.asSwapOut (): LightningOutgoingPayment .Details .SwapOut ? =
99102 (this as ? LightningOutgoingPayment .Details .SwapOut )
You can’t perform that action at this time.
0 commit comments