highlight once user is on home screen!
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendSuccessViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendSuccessViewModel.cs
@@ -7,8 +7,14 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
[NavigationMetaData(Title = "Payment successful")]
public partial class SendSuccessViewModel : RoutableViewModel
{
- public SendSuccessViewModel(SmartTransaction finalTransaction)
+ private readonly WalletViewModel _owner;
+ private readonly SmartTransaction _finalTransaction;
+
+ public SendSuccessViewModel(WalletViewModel owner, SmartTransaction finalTransaction)
{
+ _owner = owner;
+ _finalTransaction = finalTransaction;
+
NextCommand = ReactiveCommand.Create(OnNext);
SetupCancel(enableCancel: false, enableCancelOnEscape: true, enableCancelOnPressed: true);
@@ -17,6 +23,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
private void OnNext()
{
Navigate().Clear();
+
+ _owner.History.SelectTransaction(_finalTransaction.GetHash());
}
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -88,8 +88,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
var finalTransaction = await GetFinalTransactionAsync(transactionAuthorizationInfo.Transaction, _info);
await SendTransactionAsync(wallet, broadcaster, finalTransaction);
- Navigate().To(new SendSuccessViewModel(finalTransaction));
- _owner.History.SelectTransaction(finalTransaction.GetHash());
+ Navigate().To(new SendSuccessViewModel(_owner, finalTransaction));
}
catch (Exception ex)
{

highlight once user is on home screen!