@@ -1444,7 +1444,11 @@ class AppViewModel @Inject constructor(
14441444 }
14451445
14461446 @Suppress(" CyclomaticComplexMethod" )
1447- private suspend fun handleDecodedScan (scan : Scanner ? , input : String ) = when (scan) {
1447+ private suspend fun handleDecodedScan (
1448+ scan : Scanner ? ,
1449+ input : String ,
1450+ fromMainScanner : Boolean = false,
1451+ ) = when (scan) {
14481452 is Scanner .OnChain -> onScanOnchain(scan.invoice, input, fromMainScanner)
14491453 is Scanner .Lightning -> onScanLightning(scan.invoice, input, fromMainScanner)
14501454 is Scanner .LnurlPay -> onScanLnurlPay(scan.data, fromMainScanner)
@@ -2090,7 +2094,7 @@ class AppViewModel @Inject constructor(
20902094 lightningRepo.createInvoiceMsats(
20912095 amountMsats = lnurl.data.maxWithdrawable,
20922096 description = lnurl.data.defaultDescription,
2093- expirySeconds = Defaults .bolt11InvoiceExpirySeconds ,
2097+ expirySeconds = 3_600u ,
20942098 )
20952099 } else {
20962100 val withdrawAmountSats = _sendUiState .value.amount.coerceAtLeast(
@@ -2100,7 +2104,7 @@ class AppViewModel @Inject constructor(
21002104 lightningRepo.createInvoice(
21012105 amountSats = withdrawAmountSats,
21022106 description = lnurl.data.defaultDescription,
2103- expirySeconds = Defaults .bolt11InvoiceExpirySeconds ,
2107+ expirySeconds = 3_600u ,
21042108 )
21052109 }.getOrNull()
21062110
0 commit comments