Skip to content

Commit

Permalink
merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
ichthus1604 committed Jun 21, 2024
1 parent 41c3ded commit f51204b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions WalletWasabi.Fluent/Models/Wallets/CoinListModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.TransactionOutputs;
using WalletWasabi.Fluent.Extensions;
using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Logging;
using WalletWasabi.Wallets;

Expand All @@ -30,8 +31,8 @@ public CoinListModel(Wallet wallet, IWalletModel walletModel)
.Merge(isCoinjoinRunningChanged)
.Publish();

List = signals.Fetch(GetCoins, x => x.Key).DisposeWith(_disposables);
Pockets = signals.Fetch(GetPockets, x => x.Labels).DisposeWith(_disposables);
Pockets = signals.Fetch(GetPockets, x => x.Labels, new LambdaComparer<Pocket>((a, b) => Equals(a?.Labels, b?.Labels))).DisposeWith(_disposables);
List = Pockets.Connect().MergeMany(x => x.Coins.Select(GetCoinModel).AsObservableChangeSet()).AddKey(x => x.Key).AsObservableCache();

signals
.Do(_ => Logger.LogDebug($"Refresh signal emitted in {walletModel.Name}"))
Expand Down

0 comments on commit f51204b

Please sign in to comment.