From 6b688194f1d6c988aa14e350826211170bac3616 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 13 Oct 2024 08:31:41 -0400 Subject: [PATCH] play chime when buyer can confirm payment sent (#1324) --- .../main/java/haveno/core/api/CoreNotificationService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/haveno/core/api/CoreNotificationService.java b/core/src/main/java/haveno/core/api/CoreNotificationService.java index 484208d06d..edd3651539 100644 --- a/core/src/main/java/haveno/core/api/CoreNotificationService.java +++ b/core/src/main/java/haveno/core/api/CoreNotificationService.java @@ -3,6 +3,7 @@ package haveno.core.api; import com.google.inject.Singleton; import haveno.core.api.model.TradeInfo; import haveno.core.support.messages.ChatMessage; +import haveno.core.trade.BuyerTrade; import haveno.core.trade.HavenoUtils; import haveno.core.trade.MakerTrade; import haveno.core.trade.SellerTrade; @@ -55,6 +56,9 @@ public class CoreNotificationService { // play chime when maker's trade is taken if (trade instanceof MakerTrade && phase == Trade.Phase.DEPOSITS_PUBLISHED) HavenoUtils.playChimeSound(); + // play chime when buyer can confirm payment sent + if (trade instanceof BuyerTrade && phase == Trade.Phase.DEPOSITS_UNLOCKED) HavenoUtils.playChimeSound(); + // play chime when seller sees buyer confirm payment sent if (trade instanceof SellerTrade && phase == Trade.Phase.PAYMENT_SENT) HavenoUtils.playChimeSound();