Skip to content

Commit 6dc865a

Browse files
committed
fix: display boosted and evicted as already boosted
1 parent 730d920 commit 6dc865a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityDetailScreen.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,17 +601,20 @@ private fun ActivityDetailContent(
601601
is Activity.Lightning -> false
602602
is Activity.Onchain -> {
603603
val activity = item.v1
604+
val isActivityEvicted = !activity.doesExist
605+
604606
if (activity.isBoosted && activity.boostTxIds.isNotEmpty()) {
605607
val hasCPFP = activity.boostTxIds.any { boostTxDoesExist[it] == true }
606608
if (hasCPFP) {
607609
true
608610
} else if (activity.txType == PaymentType.SENT) {
609611
val isAnyBoostTxEvicted = activity.boostTxIds.any { boostTxDoesExist[it] == false }
610-
val isActivityEvicted = !activity.doesExist
611-
isAnyBoostTxEvicted || isActivityEvicted
612+
isAnyBoostTxEvicted
612613
} else {
613614
false
614615
}
616+
} else if (activity.isBoosted && isActivityEvicted) {
617+
true
615618
} else {
616619
false
617620
}

0 commit comments

Comments
 (0)