diff --git a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/ChatMessageListCellFactory.java b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/ChatMessageListCellFactory.java index 18ec8e3885..39bdf0a4dd 100644 --- a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/ChatMessageListCellFactory.java +++ b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/ChatMessageListCellFactory.java @@ -21,7 +21,12 @@ import bisq.chat.ChatMessage; import bisq.desktop.main.content.bisq_easy.open_trades.MyProtocolLogMessageBox; import bisq.desktop.main.content.bisq_easy.open_trades.PeerProtocolLogMessageBox; -import bisq.desktop.main.content.chat.message_container.list.message_box.*; +import bisq.desktop.main.content.chat.message_container.list.message_box.LeaveChatMessageBox; +import bisq.desktop.main.content.chat.message_container.list.message_box.MessageBox; +import bisq.desktop.main.content.chat.message_container.list.message_box.MyOfferMessageBox; +import bisq.desktop.main.content.chat.message_container.list.message_box.MyTextMessageBox; +import bisq.desktop.main.content.chat.message_container.list.message_box.PeerOfferMessageBox; +import bisq.desktop.main.content.chat.message_container.list.message_box.PeerTextMessageBox; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Node; @@ -38,11 +43,9 @@ final class ChatMessageListCellFactory implements Callback>>, ListCell>>> { private final ChatMessagesListController controller; - private final ChatMessagesListModel model; - public ChatMessageListCellFactory(ChatMessagesListController controller, ChatMessagesListModel model) { + public ChatMessageListCellFactory(ChatMessagesListController controller) { this.controller = controller; - this.model = model; } @Override @@ -133,16 +136,16 @@ private MessageBox createMessage(ChatMessageListItem()); diff --git a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/BubbleMessageBox.java b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/BubbleMessageBox.java index 7239e12719..7281dd7bfa 100644 --- a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/BubbleMessageBox.java +++ b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/BubbleMessageBox.java @@ -28,7 +28,6 @@ import bisq.desktop.components.controls.DropdownMenu; import bisq.desktop.main.content.chat.message_container.list.ChatMessageListItem; import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListController; -import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListModel; import bisq.desktop.main.content.components.UserProfileIcon; import de.jensd.fx.fontawesome.AwesomeIcon; import javafx.geometry.Insets; @@ -55,7 +54,6 @@ public abstract class BubbleMessageBox extends MessageBox { protected final ChatMessageListItem> item; protected final ListView>> list; protected final ChatMessagesListController controller; - protected final ChatMessagesListModel model; protected final UserProfileIcon userProfileIcon = new UserProfileIcon(60); protected final HBox reactionsHBox = new HBox(20); protected final VBox quotedMessageVBox, contentVBox; @@ -66,12 +64,10 @@ public abstract class BubbleMessageBox extends MessageBox { public BubbleMessageBox(ChatMessageListItem> item, ListView>> list, - ChatMessagesListController controller, - ChatMessagesListModel model) { + ChatMessagesListController controller) { this.item = item; this.list = list; this.controller = controller; - this.model = model; setUpUserNameAndDateTime(); setUpUserProfileIcon(); diff --git a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/MyOfferMessageBox.java b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/MyOfferMessageBox.java index 91fdeb9f88..a815a153a0 100644 --- a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/MyOfferMessageBox.java +++ b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/MyOfferMessageBox.java @@ -26,7 +26,6 @@ import bisq.desktop.components.controls.DropdownMenuItem; import bisq.desktop.main.content.chat.message_container.list.ChatMessageListItem; import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListController; -import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListModel; import bisq.i18n.Res; import bisq.offer.Direction; import de.jensd.fx.fontawesome.AwesomeIcon; @@ -47,8 +46,8 @@ public final class MyOfferMessageBox extends BubbleMessageBox { public MyOfferMessageBox(ChatMessageListItem> item, ListView>> list, - ChatMessagesListController controller, ChatMessagesListModel model) { - super(item, list, controller, model); + ChatMessagesListController controller) { + super(item, list, controller); // User profile icon userProfileIcon.setSize(OFFER_MESSAGE_USER_ICON_SIZE); diff --git a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/MyTextMessageBox.java b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/MyTextMessageBox.java index c6fffd7777..af09910082 100644 --- a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/MyTextMessageBox.java +++ b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/MyTextMessageBox.java @@ -26,7 +26,6 @@ import bisq.desktop.components.controls.BisqTooltip; import bisq.desktop.main.content.chat.message_container.list.ChatMessageListItem; import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListController; -import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListModel; import bisq.i18n.Res; import bisq.network.p2p.services.confidential.ack.MessageDeliveryStatus; import de.jensd.fx.fontawesome.AwesomeDude; @@ -56,8 +55,8 @@ public final class MyTextMessageBox extends BubbleMessageBox { public MyTextMessageBox(ChatMessageListItem> item, ListView>> list, - ChatMessagesListController controller, ChatMessagesListModel model) { - super(item, list, controller, model); + ChatMessagesListController controller) { + super(item, list, controller); quotedMessageVBox.setId("chat-message-quote-box-my-msg"); setUpEditFunctionality(); diff --git a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/PeerOfferMessageBox.java b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/PeerOfferMessageBox.java index f2eef7c853..09eb804a48 100644 --- a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/PeerOfferMessageBox.java +++ b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/PeerOfferMessageBox.java @@ -25,7 +25,6 @@ import bisq.desktop.components.containers.Spacer; import bisq.desktop.main.content.chat.message_container.list.ChatMessageListItem; import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListController; -import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListModel; import bisq.i18n.Res; import bisq.offer.Direction; import javafx.geometry.Insets; @@ -46,8 +45,8 @@ public final class PeerOfferMessageBox extends PeerTextMessageBox { public PeerOfferMessageBox(ChatMessageListItem> item, ListView>> list, - ChatMessagesListController controller, ChatMessagesListModel model) { - super(item, list, controller, model); + ChatMessagesListController controller) { + super(item, list, controller); HBox.setMargin(copyIcon, new Insets(4, 0, -4, 0)); HBox.setMargin(supportedLanguages, new Insets(5, 0, -5, 0)); diff --git a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/PeerTextMessageBox.java b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/PeerTextMessageBox.java index 35d89bb1db..e6a8a04d69 100644 --- a/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/PeerTextMessageBox.java +++ b/apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/PeerTextMessageBox.java @@ -25,7 +25,6 @@ import bisq.desktop.components.controls.DropdownMenuItem; import bisq.desktop.main.content.chat.message_container.list.ChatMessageListItem; import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListController; -import bisq.desktop.main.content.chat.message_container.list.ChatMessagesListModel; import bisq.i18n.Res; import de.jensd.fx.fontawesome.AwesomeIcon; import javafx.geometry.Insets; @@ -44,8 +43,8 @@ public class PeerTextMessageBox extends BubbleMessageBox { public PeerTextMessageBox(ChatMessageListItem> item, ListView>> list, - ChatMessagesListController controller, ChatMessagesListModel model) { - super(item, list, controller, model); + ChatMessagesListController controller) { + super(item, list, controller); setUpPeerMessage(); setMargin(userNameAndDateHBox, new Insets(-5, 0, -5, 10));