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 8469d526d0
commit a4dafe9088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);