Skip to content

Commit 6b81ff3

Browse files
authored
Merge branch 'master' into feat/rn-migration
2 parents c8c6e84 + 3444b07 commit 6b81ff3

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)