mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
play chime when buyer can confirm payment sent (#1324)
This commit is contained in:
parent
5f0d95c743
commit
6b688194f1
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@ package haveno.core.api;
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
import haveno.core.api.model.TradeInfo;
|
import haveno.core.api.model.TradeInfo;
|
||||||
import haveno.core.support.messages.ChatMessage;
|
import haveno.core.support.messages.ChatMessage;
|
||||||
|
import haveno.core.trade.BuyerTrade;
|
||||||
import haveno.core.trade.HavenoUtils;
|
import haveno.core.trade.HavenoUtils;
|
||||||
import haveno.core.trade.MakerTrade;
|
import haveno.core.trade.MakerTrade;
|
||||||
import haveno.core.trade.SellerTrade;
|
import haveno.core.trade.SellerTrade;
|
||||||
|
@ -55,6 +56,9 @@ public class CoreNotificationService {
|
||||||
// play chime when maker's trade is taken
|
// play chime when maker's trade is taken
|
||||||
if (trade instanceof MakerTrade && phase == Trade.Phase.DEPOSITS_PUBLISHED) HavenoUtils.playChimeSound();
|
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
|
// play chime when seller sees buyer confirm payment sent
|
||||||
if (trade instanceof SellerTrade && phase == Trade.Phase.PAYMENT_SENT) HavenoUtils.playChimeSound();
|
if (trade instanceof SellerTrade && phase == Trade.Phase.PAYMENT_SENT) HavenoUtils.playChimeSound();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue