File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
app/src/main/java/to/bitkit/viewmodels Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -512,13 +512,17 @@ class AppViewModel @Inject constructor(
512512 return @launch
513513 }
514514
515- // TODO COMPARE PAYMENT HASH AND TX ID
516-
517515 when (activity) {
518- is Activity .Lightning -> coreService.activity.appendTags(
519- toActivityId = activity.v1.id,
520- tags = _sendUiState .value.selectedTags
521- )
516+ is Activity .Lightning -> {
517+ if (paymentHashOrTxId == activity.v1.id) {
518+ coreService.activity.appendTags(
519+ toActivityId = activity.v1.id,
520+ tags = _sendUiState .value.selectedTags
521+ )
522+ } else {
523+ Logger .error(" Different activity id. Expected: $paymentHashOrTxId found: ${activity.v1.id} " )
524+ }
525+ }
522526
523527 is Activity .Onchain -> {
524528 if (paymentHashOrTxId == activity.v1.txId) {
@@ -527,7 +531,7 @@ class AppViewModel @Inject constructor(
527531 tags = _sendUiState .value.selectedTags
528532 )
529533 } else {
530- Logger .error(" Different tcId . Expected: $paymentHashOrTxId found: ${activity.v1.txId} " )
534+ Logger .error(" Different txId . Expected: $paymentHashOrTxId found: ${activity.v1.txId} " )
531535 }
532536 }
533537 }
You can’t perform that action at this time.
0 commit comments