Update client/src/main/java/envoy/client/ui/controller/ChatScene.java

Co-authored-by: CyB3RC0nN0R <kske@outlook.de>
This commit is contained in:
delvh 2020-07-24 13:42:39 +02:00 committed by GitHub
parent 8718596be2
commit 4d4de3a27f
1 changed files with 1 additions and 2 deletions

View File

@ -516,8 +516,7 @@ public final class ChatScene implements Restorable {
return; return;
} }
final var text = messageTextArea.getText().strip(); final var text = messageTextArea.getText().strip();
final var systemCommandPresent = messageTextAreaCommands.executeIfAnyPresent(text); if (!messageTextAreaCommands.executeIfAnyPresent(text)) try {
if (systemCommandPresent) {} else try {
// Creating the message and its metadata // Creating the message and its metadata
final var builder = new MessageBuilder(localDB.getUser().getID(), currentChat.getRecipient().getID(), localDB.getIDGenerator()) final var builder = new MessageBuilder(localDB.getUser().getID(), currentChat.getRecipient().getID(), localDB.getIDGenerator())
.setText(text); .setText(text);