Skip to content

Commit

Permalink
Highlight of closed disputes with unread chats
Browse files Browse the repository at this point in the history
  • Loading branch information
BtcContributor committed Mar 24, 2021
1 parent 7e8c9db commit aea043e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1364,14 +1364,14 @@ public void updateItem(final Dispute item, boolean empty) {
listener = (observable, oldValue, newValue) -> {
setText(newValue ? Res.get("support.closed") : Res.get("support.open"));
if (getTableRow() != null)
getTableRow().setOpacity(newValue ? 0.4 : 1);
getTableRow().setOpacity(newValue && item.getBadgeCountProperty().get() == 0 ? 0.4 : 1);
};
closedProperty = item.isClosedProperty();
closedProperty.addListener(listener);
boolean isClosed = item.isClosed();
setText(isClosed ? Res.get("support.closed") : Res.get("support.open"));
if (getTableRow() != null)
getTableRow().setOpacity(isClosed ? 0.4 : 1);
getTableRow().setOpacity(isClosed && item.getBadgeCountProperty().get() == 0 ? 0.4 : 1);
} else {
if (closedProperty != null) {
closedProperty.removeListener(listener);
Expand Down

0 comments on commit aea043e

Please sign in to comment.