get labels from the selected coins
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
@@ -60,17 +60,6 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
EnoughSelected = StillNeeded <= 0;
});
- _pocketSource
- .Connect()
- .WhenValueChanged(x => x.IsSelected)
- .Subscribe(_ =>
- {
- var selectedPocketLabels = Pockets.Where(x => x.IsSelected)
- .Select(x => x.Labels)
- .Where(label => label != CoinPocketHelper.PrivateFundsText && label != CoinPocketHelper.UnlabelledFundsText);
- transactionInfo.PocketLabels = SmartLabel.Merge(selectedPocketLabels);
- });
-
StillNeeded = transactionInfo.Amount.ToDecimal(MoneyUnit.BTC);
EnableBack = 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;
@@ -11,9 +12,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
public SmartLabel SendLabels { private get; set; }
- public SmartLabel? PocketLabels { private get; set; }
-
- public SmartLabel Labels => SmartLabel.Merge(SendLabels, PocketLabels);
+ public SmartLabel Labels => SmartLabel.Merge(SendLabels, SmartLabel.Merge(Coins.Select(x => x.HdPubKey.Cluster.Labels)));
public BitcoinAddress Address { get; set; }

get labels from the selected coins