We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21735b1 commit 00e7548Copy full SHA for 00e7548
app/src/main/java/to/bitkit/repositories/ActivityRepo.kt
@@ -357,7 +357,18 @@ class ActivityRepo @Inject constructor(
357
is PaymentKind.Onchain -> {
358
when (payment.direction) {
359
PaymentDirection.INBOUND -> TODO()
360
- PaymentDirection.OUTBOUND -> TODO()
+ PaymentDirection.OUTBOUND -> {
361
+ db.tagMetadataDao().searchByTxId(kind.txid)?.let { tagMetadata ->
362
+ addTagsToTransaction(
363
+ paymentHashOrTxId = kind.txid,
364
+ type = ActivityFilter.ONCHAIN,
365
+ txType = if (tagMetadata.isReceive) PaymentType.RECEIVED else PaymentType.SENT,
366
+ tags = tagMetadata.tags
367
+ ).onSuccess {
368
+ db.tagMetadataDao().deleteByTxId(kind.txid)
369
+ }
370
371
372
}
373
374
else -> Unit
0 commit comments