Clear text box after sending.

This commit is contained in:
Tristan B. Kildaire 2020-10-18 16:31:21 +02:00
parent 922e8278b2
commit 29b1bc84c7
1 changed files with 10 additions and 1 deletions

View File

@ -108,7 +108,16 @@ public final class Channel
private void sendMessageBtn(Button)
{
client.sendMessage(0, channelName, textInput.getBuffer().getText());
/* Retrieve the message */
string message = textInput.getBuffer().getText();
/* TODO: Add the message to our log (as it won't be delivered to us) */
/* Send the message */
client.sendMessage(0, channelName, message);
/* Clear the text box */
textInput.getBuffer().setText("");
}
public Box getBox()