Add required ctor params
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
using System.Collections.Generic;
+using System.Collections.ObjectModel;
using System.Linq;
+using System.Reactive;
using NBitcoin;
using ReactiveUI;
using WalletWasabi.Blockchain.Transactions;
@@ -10,9 +12,19 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History.HistoryItems;
public class CoinJoinsHistoryItemViewModel : HistoryItemViewModelBase
{
- public CoinJoinsHistoryItemViewModel(int orderIndex, TransactionSummary firstItem)
+ private readonly WalletViewModel _walletViewModel;
+ private readonly IObservable<Unit> _updateTrigger;
+
+ public CoinJoinsHistoryItemViewModel(
+ int orderIndex,
+ TransactionSummary firstItem,
+ WalletViewModel walletViewModel,
+ IObservable<Unit> updateTrigger)
: base(orderIndex, firstItem)
{
+ _walletViewModel = walletViewModel;
+ _updateTrigger = updateTrigger;
+
CoinJoinTransactions = new List<TransactionSummary>();
Label = "Coinjoins";
FilteredLabel = new List<string>();

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
@@ -280,7 +280,7 @@ public partial class HistoryViewModel : ActivatableViewModel
{
if (coinJoinGroup is null)
{
- coinJoinGroup = new CoinJoinsHistoryItemViewModel(i, item);
+ coinJoinGroup = new CoinJoinsHistoryItemViewModel(i, item, _walletViewModel, _updateTrigger);
}
else
{

Add required ctor params