Send - fix paste button flashing after pasting PayJoin address
MODIFY
WalletWasabi.Fluent/Behaviors/PasteButtonFlashBehavior.cs
WalletWasabi.Fluent/Behaviors/PasteButtonFlashBehavior.cs
@@ -98,8 +98,11 @@ public class PasteButtonFlashBehavior : AttachedToVisualTreeBehavior<AnimatedBut
clipboardValue = clipboardValue.Trim();
+ // ClipboardValue might not match CurrentAddress, but it might be a PayJoin address pointing to the CurrentAddress
+ // Hence we need to compare both string value and parse result
if (clipboardValue != CurrentAddress &&
- AddressStringParser.TryParse(clipboardValue, Services.WalletManager.Network, out _))
+ AddressStringParser.TryParse(clipboardValue, Services.WalletManager.Network, out var address) &&
+ address?.Address?.ToString() != CurrentAddress)
{
AssociatedObject.Classes.Add(FlashAnimation);
_lastFlashedOn = clipboardValue;

Send - fix paste button flashing after pasting PayJoin address