Use union instead of concat distinct
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -188,8 +188,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
var suggestedWords = Global.WalletService.GetNonSpecialLabels().Where(w => w.StartsWith(lastWorld, StringComparison.InvariantCultureIgnoreCase))
- .Concat(Global.WalletService.GetNonSpecialLabels().Where(w => w.Contains(lastWorld, StringComparison.InvariantCultureIgnoreCase)))
- .Distinct().Take(3);
+ .Union(Global.WalletService.GetNonSpecialLabels().Where(w => w.Contains(lastWorld, StringComparison.InvariantCultureIgnoreCase)))
+ .Take(3);
Suggestions.Clear();
foreach (var suggestion in suggestedWords)

MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -1038,11 +1038,6 @@ namespace WalletWasabi.Services
Logger.LogInfo<WalletService>($"Transaction is successfully broadcasted: {transaction.GetHash()}.");
}
- public IEnumerable<string> GetAllLabels()
- {
- return Coins.Select(x => x.Label).Distinct();
- }
-
public IEnumerable<string> GetNonSpecialLabels()
{
return Coins.Where(x => !x.Label.StartsWith("change of") && !x.Label.StartsWith("ZeroLink")).Select(x => x.Label).Distinct();

Use union instead of concat distinct