Skip to content

Commit f0ea7d0

Browse files
committed
fix(flipcash): claiming cash links are really deposits
remove default from isDefault for enqueing a toast Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 759166c commit f0ea7d0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/flipcash/shared/session/src/main/kotlin/com/flipcash/app/session/internal/RealSessionController.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class RealSessionController @Inject constructor(
392392
is ShareConfirmationResult.Confirmed -> {
393393
when (result) {
394394
ShareResult.CopiedToClipboard -> {
395-
toastController.enqueue(amount)
395+
toastController.enqueue(amount, isDeposit = false)
396396
dismissBill(Grabbed)
397397
vibrator.vibrate()
398398
bringActivityFeedCurrent()
@@ -407,7 +407,7 @@ class RealSessionController @Inject constructor(
407407
}
408408

409409
is ShareResult.SharedToApp -> {
410-
toastController.enqueue(amount)
410+
toastController.enqueue(amount, isDeposit = false)
411411
dismissBill(Grabbed)
412412
vibrator.vibrate()
413413
bringActivityFeedCurrent()
@@ -528,7 +528,7 @@ class RealSessionController @Inject constructor(
528528
entropy = entropy,
529529
owner = owner,
530530
onReceived = {
531-
toastController.enqueue(it)
531+
toastController.enqueue(it, isDeposit = true)
532532
showBill(
533533
bill = Bill.Cash(amount = it, didReceive = true),
534534
vibrate = true

apps/flipcash/shared/session/src/main/kotlin/com/flipcash/app/session/internal/toast/ToastController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ToastController @Inject constructor(
3737

3838
fun enqueue(
3939
amount: LocalFiat,
40-
isDeposit: Boolean = false,
40+
isDeposit: Boolean,
4141
initialDelay: Duration = INITIAL_DELAY
4242
) {
4343
if (amount.converted.doubleValue == 0.0) {

0 commit comments

Comments
 (0)