diff --git a/src/main/java/envoy/client/ui/controller/ChatScene.java b/src/main/java/envoy/client/ui/controller/ChatScene.java
index fa1fe52..4cee655 100644
--- a/src/main/java/envoy/client/ui/controller/ChatScene.java
+++ b/src/main/java/envoy/client/ui/controller/ChatScene.java
@@ -63,6 +63,9 @@ public final class ChatScene {
@FXML
private Label remainingChars;
+ @FXML
+ private MenuItem deleteContactMenuItem;
+
private LocalDB localDB;
private Client client;
private WriteProxy writeProxy;
@@ -176,6 +179,7 @@ public final class ChatScene {
.orElseGet(() -> { final var chat = new Chat(user); localDB.getChats().add(chat); return chat; });
messageList.setItems(FXCollections.observableList(currentChat.getMessages()));
+ deleteContactMenuItem.setText("Delete " + user.getName());
// Read the current chat
try {
@@ -330,4 +334,21 @@ public final class ChatScene {
@FXML
private void quoteMessage() {}
+
+ @FXML
+ private void deleteContact() {
+ // TODO: Fill with content
+ userList.getSelectionModel().getSelectedItem();
+ }
+
+ @FXML
+ private void copyAndPostMessage() {
+ final var messageText = messageTextArea.getText();
+ Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(messageText), null);
+ postMessage();
+ messageTextArea.setText(messageText);
+ updateRemainingCharsLabel();
+ postButton.setDisable(messageText.isBlank());
+ }
+
}
diff --git a/src/main/resources/fxml/ChatScene.fxml b/src/main/resources/fxml/ChatScene.fxml
index 4d7d4f6..50aa280 100644
--- a/src/main/resources/fxml/ChatScene.fxml
+++ b/src/main/resources/fxml/ChatScene.fxml
@@ -31,7 +31,15 @@
-
+
+
+
+
+
+
+
+
+