use all labels during transaction building
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -96,7 +96,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
this.WhenAnyValue(x => x.XAxisCurrentValueIndex)
.Subscribe(SetXAxisCurrentValue);
- Labels.ToObservableChangeSet().Subscribe(x => _transactionInfo.Labels = new SmartLabel(_labels.ToArray()));
+ Labels.ToObservableChangeSet().Subscribe(x => _transactionInfo.SendLabels = new SmartLabel(_labels.ToArray()));
EnableCancel = true;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionInfo.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionInfo.cs
using System;
using System.Collections.Generic;
+using System.Linq;
using NBitcoin;
using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.TransactionOutputs;
@@ -8,9 +9,11 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
public class TransactionInfo
{
- public SmartLabel Labels { get; set; }
+ public SmartLabel SendLabels { private get; set; }
- public SmartLabel? PocketLabels { get; set; }
+ public SmartLabel? PocketLabels { private get; set; }
+
+ public SmartLabel Labels => PocketLabels is { } ? new SmartLabel(SendLabels.Concat(PocketLabels)) : SendLabels;
public BitcoinAddress Address { get; set; }

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -58,7 +58,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
base.OnNavigatedTo(isInHistory, disposables);
- Labels = _info.PocketLabels is { } ? _info.Labels.Concat(_info.PocketLabels).ToArray() : _info.Labels.ToArray();
+ Labels = _info.Labels.ToArray();
}
private async Task OnNext(Wallet wallet, TransactionBroadcaster broadcaster, BuildTransactionResult transaction)

use all labels during transaction building