diff --git a/common/src/main/proto/pb.proto b/common/src/main/proto/pb.proto index d5f3d0ee003..7742774b490 100644 --- a/common/src/main/proto/pb.proto +++ b/common/src/main/proto/pb.proto @@ -283,8 +283,9 @@ message PeerOpenedDisputeMessage { message DisputeCommunicationMessage { enum Type { - DISPUTE = 0; - TRADE = 1; + MEDIATION = 0; + ARBITRATION = 1; + TRADE = 2; } int64 date = 1; string trade_id = 2; diff --git a/core/src/main/java/bisq/core/arbitration/DisputeChatSession.java b/core/src/main/java/bisq/core/arbitration/DisputeChatSession.java index 2f943dfc758..1f5d7213377 100644 --- a/core/src/main/java/bisq/core/arbitration/DisputeChatSession.java +++ b/core/src/main/java/bisq/core/arbitration/DisputeChatSession.java @@ -50,7 +50,7 @@ public class DisputeChatSession extends ChatSession { public DisputeChatSession(@Nullable Dispute dispute, DisputeManager disputeManager) { - super(DisputeCommunicationMessage.Type.DISPUTE); + super(DisputeCommunicationMessage.Type.ARBITRATION); this.dispute = dispute; this.disputeManager = disputeManager; } @@ -136,7 +136,7 @@ public void dispatchMessage(DisputeMessage message) { } else if (message instanceof PeerOpenedDisputeMessage) { disputeManager.onPeerOpenedDisputeMessage((PeerOpenedDisputeMessage) message); } else if (message instanceof DisputeCommunicationMessage) { - if (((DisputeCommunicationMessage) message).getType() != DisputeCommunicationMessage.Type.DISPUTE) { + if (((DisputeCommunicationMessage) message).getType() != DisputeCommunicationMessage.Type.ARBITRATION) { log.debug("Ignore non dispute type communication message"); return; } diff --git a/core/src/main/java/bisq/core/arbitration/messages/DisputeCommunicationMessage.java b/core/src/main/java/bisq/core/arbitration/messages/DisputeCommunicationMessage.java index 18a4cca3c83..c198c64f8ec 100644 --- a/core/src/main/java/bisq/core/arbitration/messages/DisputeCommunicationMessage.java +++ b/core/src/main/java/bisq/core/arbitration/messages/DisputeCommunicationMessage.java @@ -61,7 +61,8 @@ public final class DisputeCommunicationMessage extends DisputeMessage { public enum Type { - DISPUTE, + MEDIATION, + ARBITRATION, TRADE; public static DisputeCommunicationMessage.Type fromProto(