File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit/viewmodels Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1054,7 +1054,7 @@ class AppViewModel @Inject constructor(
10541054 }
10551055 }
10561056
1057- private fun onScanLnurlWithdraw (data : LnurlWithdrawData ) {
1057+ private suspend fun onScanLnurlWithdraw (data : LnurlWithdrawData ) {
10581058 Logger .debug(" LNURL: $data " , context = TAG )
10591059
10601060 val minWithdrawable = data.minWithdrawableSat()
@@ -1078,7 +1078,12 @@ class AppViewModel @Inject constructor(
10781078 }
10791079
10801080 if (minWithdrawable == maxWithdrawable) {
1081- setSendEffect(SendEffect .NavigateToWithdrawConfirm )
1081+ delay(TRANSITION_SCREEN_MS )
1082+ if (isMainScanner) {
1083+ showSheet(Sheet .Send (SendRoute .WithdrawConfirm ))
1084+ } else {
1085+ setSendEffect(SendEffect .NavigateToWithdrawConfirm )
1086+ }
10821087 return
10831088 }
10841089
@@ -1773,6 +1778,7 @@ class AppViewModel @Inject constructor(
17731778 _currentSheet .update { null }
17741779 }
17751780 }
1781+
17761782 else -> _currentSheet .update { null }
17771783 }
17781784 }
You can’t perform that action at this time.
0 commit comments