pop the notification from walletmanager
MODIFY
WalletWasabi.Fluent/ViewModels/WalletManagerViewModel.cs
WalletWasabi.Fluent/ViewModels/WalletManagerViewModel.cs
@@ -9,6 +9,8 @@ using DynamicData;
using DynamicData.Binding;
using ReactiveUI;
using WalletWasabi.Blockchain.TransactionBroadcasting;
+using WalletWasabi.Blockchain.TransactionProcessing;
+using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.ViewModels.NavBar;
using WalletWasabi.Fluent.ViewModels.Wallets;
using WalletWasabi.Fluent.ViewModels.Wallets.Actions;
@@ -111,6 +113,21 @@ namespace WalletWasabi.Fluent.ViewModels
InsertWallet(vm);
});
+ Observable
+ .FromEventPattern<ProcessedResult>(walletManager, nameof(walletManager.WalletRelevantTransactionProcessed))
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(arg =>
+ {
+ var (sender, e) = arg;
+
+ if (uiConfig.PrivacyMode || !e.IsNews || sender is not Wallet {IsLoggedIn: true, State: WalletState.Started})
+ {
+ return;
+ }
+
+ NotificationHelpers.Show(e);
+ });
+
RxApp.MainThreadScheduler.Schedule(() => EnumerateWallets(walletManager));
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
@@ -4,8 +4,6 @@ using System.Collections.Generic;
using System.Reactive;
using System.Reactive.Disposables;
using System.Reactive.Linq;
-using WalletWasabi.Blockchain.TransactionProcessing;
-using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.ViewModels.Wallets.HardwareWallet;
using WalletWasabi.Fluent.ViewModels.Wallets.Home.History;
using WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles;
@@ -73,18 +71,6 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
WalletPieChart,
BalanceChartTile
};
-
- Observable.FromEventPattern<ProcessedResult>(Wallet.TransactionProcessor, nameof(Wallet.TransactionProcessor.WalletRelevantTransactionProcessed))
- .Select(x => x.EventArgs)
- .Subscribe(e =>
- {
- if (uiConfig.PrivacyMode || !e.IsNews)
- {
- return;
- }
-
- NotificationHelpers.Show(e);
- });
}
private CompositeDisposable Disposables { get; set; }

pop the notification from walletmanager