Search in sources :

Example 1 with DisputeMessage

use of bisq.core.arbitration.messages.DisputeMessage in project bisq-core by bisq-network.

the class DisputeManager method applyMessages.

private void applyMessages() {
    decryptedDirectMessageWithPubKeys.forEach(decryptedMessageWithPubKey -> {
        NetworkEnvelope networkEnvelope = decryptedMessageWithPubKey.getNetworkEnvelope();
        log.debug("decryptedDirectMessageWithPubKeys.message " + networkEnvelope);
        if (networkEnvelope instanceof DisputeMessage)
            dispatchMessage((DisputeMessage) networkEnvelope);
    });
    decryptedDirectMessageWithPubKeys.clear();
    decryptedMailboxMessageWithPubKeys.forEach(decryptedMessageWithPubKey -> {
        NetworkEnvelope networkEnvelope = decryptedMessageWithPubKey.getNetworkEnvelope();
        log.debug("decryptedMessageWithPubKey.message " + networkEnvelope);
        if (networkEnvelope instanceof DisputeMessage) {
            dispatchMessage((DisputeMessage) networkEnvelope);
            p2PService.removeEntryFromMailbox(decryptedMessageWithPubKey);
        }
    });
    decryptedMailboxMessageWithPubKeys.clear();
}
Also used : DisputeMessage(bisq.core.arbitration.messages.DisputeMessage) OpenNewDisputeMessage(bisq.core.arbitration.messages.OpenNewDisputeMessage) PeerOpenedDisputeMessage(bisq.core.arbitration.messages.PeerOpenedDisputeMessage) NetworkEnvelope(bisq.common.proto.network.NetworkEnvelope)

Aggregations

NetworkEnvelope (bisq.common.proto.network.NetworkEnvelope)1 DisputeMessage (bisq.core.arbitration.messages.DisputeMessage)1 OpenNewDisputeMessage (bisq.core.arbitration.messages.OpenNewDisputeMessage)1 PeerOpenedDisputeMessage (bisq.core.arbitration.messages.PeerOpenedDisputeMessage)1