Default user profile & saved messages & archived chat profile fixed.

This commit is contained in:
Asal Lotfi
2025-08-29 17:41:54 +03:30
parent 03ae9b2fa9
commit e507f64aba
7 changed files with 100 additions and 26 deletions
@@ -164,7 +164,7 @@ public class MainController {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/org/to/telegramfinalproject/Fxml/chat_item.fxml"));
Node chatItem = loader.load();
ChatItemController controller = loader.getController();
controller.setChatData(name, lastMsg, time, unread);
controller.setChatData(name, lastMsg, time, unread, "/org/to/telegramfinalproject/Avatars/default_profile.png");
chatItem.setOnMouseClicked(e -> openChat(name));
chatListContainer.getChildren().add(chatItem);