File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
app/src/main/java/to/bitkit/ui/screens/wallets/activity/components Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,16 @@ fun ActivityRow(
9595 val subtitleText = when (item) {
9696 is Activity .Lightning -> item.v1.message.ifEmpty { formattedTime(timestamp) }
9797 is Activity .Onchain -> {
98- if (confirmed == true ) {
99- formattedTime(timestamp)
100- } else {
101- // TODO: calculate confirmsIn text
102- stringResource(R .string.wallet__activity_confirms_in).replace(" {feeRateDescription}" , " ± 1h" )
98+ when {
99+ isTransfer && isSent -> stringResource(R .string.wallet__activity_transfer_spending_done)
100+ isTransfer && ! isSent -> stringResource(R .string.wallet__activity_transfer_savings_done)
101+ confirmed == true -> {
102+ formattedTime(timestamp)
103+ }
104+ else -> {
105+ // TODO: calculate confirmsIn text
106+ stringResource(R .string.wallet__activity_confirms_in).replace(" {feeRateDescription}" , " ± 1h" )
107+ }
103108 }
104109 }
105110 }
You can’t perform that action at this time.
0 commit comments