mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Improve user experience once mediation has been accepted by both parties
Transitions to Trade Step 4 (previously it would close/remove the trade).
This commit is contained in:
parent
8fb8374721
commit
670c5418ee
1 changed files with 3 additions and 1 deletions
|
@ -702,7 +702,9 @@ public class TradeManager implements PersistedDataHost, DecryptedDirectMessageLi
|
|||
public void closeDisputedTrade(String tradeId, Trade.DisputeState disputeState) {
|
||||
getTradeById(tradeId).ifPresent(trade -> {
|
||||
trade.setDisputeState(disputeState);
|
||||
onTradeCompleted(trade);
|
||||
trade.setState(trade.getContract().isMyRoleBuyer(keyRing.getPubKeyRing()) ?
|
||||
Trade.State.BUYER_RECEIVED_PAYOUT_TX_PUBLISHED_MSG : // buyer to trade step 4
|
||||
Trade.State.SELLER_SAW_ARRIVED_PAYOUT_TX_PUBLISHED_MSG); // seller to trade step 4
|
||||
btcWalletService.swapTradeEntryToAvailableEntry(trade.getId(), AddressEntry.Context.TRADE_PAYOUT);
|
||||
requestPersistence();
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue