Add label suggestion exceptions
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Labels/SuggestionLabelsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Labels/SuggestionLabelsViewModel.cs
@@ -38,7 +38,19 @@ public partial class SuggestionLabelsViewModel : ViewModelBase
public void UpdateLabels()
{
- var labels = WalletHelpers.GetLabels();
+ var unwantedLabelSuggestions = new[]
+ {
+ "test", // Often people use the string "test" as a label. It obviously cannot be a real label, just a test label.
+ "zerolink mixed coin", // Obsolated autogenerated label from old WW1 versions.
+ "zerolink change", // Obsolated autogenerated label from old WW1 versions.
+ "zerolink dequeued change" // Obsolated autogenerated label from old WW1 versions.
+ };
+
+ var labels = WalletHelpers
+ .GetLabels()
+ .Where(x =>
+ !unwantedLabelSuggestions.Any(y => y.Equals(x, StringComparison.OrdinalIgnoreCase))
+ && !x.StartsWith("change of (", StringComparison.OrdinalIgnoreCase)); // An obsolated autogenerated label pattern was from old WW1 versions starting with "change of (".
var mostUsedLabels = labels.GroupBy(x => x)
.Select(x => new

Add label suggestion exceptions