UI isn't shown if there arn't any unread messages
This commit is contained in:
		@@ -40,6 +40,7 @@ public class ChatControl extends HBox {
 | 
				
			|||||||
			vBox.getChildren().add(new Label(((Group) contact).getContacts().size() + " members"));
 | 
								vBox.getChildren().add(new Label(((Group) contact).getContacts().size() + " members"));
 | 
				
			||||||
				
 | 
									
 | 
				
			||||||
		getChildren().add(vBox);
 | 
							getChildren().add(vBox);
 | 
				
			||||||
 | 
							if (unreadMessagesAmount != 0) {
 | 
				
			||||||
			Region spacing = new Region();
 | 
								Region spacing = new Region();
 | 
				
			||||||
			setHgrow(spacing, Priority.ALWAYS);
 | 
								setHgrow(spacing, Priority.ALWAYS);
 | 
				
			||||||
			getChildren().add(spacing);
 | 
								getChildren().add(spacing);
 | 
				
			||||||
@@ -52,4 +53,5 @@ public class ChatControl extends HBox {
 | 
				
			|||||||
			vBox2.getChildren().add(unreadMessagesLabel);
 | 
								vBox2.getChildren().add(unreadMessagesLabel);
 | 
				
			||||||
			getChildren().add(vBox2);
 | 
								getChildren().add(vBox2);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user