Display status for own messages instead of received ones
This commit is contained in:
parent
6754465aff
commit
ad83d6d2d4
@ -43,7 +43,7 @@ public class MessageListCell extends ListCell<Message> {
|
||||
setGraphic(null);
|
||||
} else {
|
||||
final var cell = new VBox(new Label(dateFormat.format(message.getCreationDate())), new Label(message.getText()));
|
||||
if (message.getRecipientID() == client.getID()) {
|
||||
if (message.getRecipientID() != client.getID()) {
|
||||
cell.getChildren().add(new Label("", new ImageView(statusImages.get(message.getStatus()))));
|
||||
cell.getStyleClass().add("own-message");
|
||||
} else cell.getStyleClass().add("received-message");
|
||||
|
Reference in New Issue
Block a user