Adjusted message creation to the updated MessageBuilder.
This commit is contained in:
parent
655ac58f32
commit
d005bcd4c9
@ -247,7 +247,9 @@ public class ChatWindow extends JFrame {
|
||||
if (!messageEnterTextArea.getText().isEmpty()) try {
|
||||
|
||||
// Create message
|
||||
final Message message = new MessageBuilder(localDB.getUser(), currentChat.getRecipient()).setText(messageEnterTextArea.getText()).build();
|
||||
final Message message = new MessageBuilder(localDB.getUser().getId(), currentChat.getRecipient().getId())
|
||||
.setText(messageEnterTextArea.getText())
|
||||
.build();
|
||||
|
||||
// Send message
|
||||
client.sendMessage(message);
|
||||
|
Reference in New Issue
Block a user