new dispute state is considered open

This commit is contained in:
woodser 2024-11-13 12:44:42 -05:00
parent 5f29e7e1a6
commit b17c927494

View file

@ -467,7 +467,7 @@ public final class Dispute implements NetworkPayload, PersistablePayload {
}
public boolean isOpen() {
return this.disputeState == State.OPEN || this.disputeState == State.REOPENED;
return isNew() || this.disputeState == State.OPEN || this.disputeState == State.REOPENED;
}
public boolean isClosed() {
@ -494,6 +494,8 @@ public final class Dispute implements NetworkPayload, PersistablePayload {
public void setDisputeSeen(boolean senderFlag) {
if (this.disputeState == State.NEW)
setState(State.OPEN);
log.warn("Setting dispute seen");
Thread.dumpStack();
refreshAlertLevel(senderFlag);
}