summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk.c b/gtk.c
index 1a13bfa..b519a28 100644
--- a/gtk.c
+++ b/gtk.c
@@ -75,8 +75,9 @@ void send_message(chat_t* chat) {
const char* text = gtk_editable_get_text(GTK_EDITABLE(chat_widget->entry));
const char* self = gtk_editable_get_text(GTK_EDITABLE(connector_jid_entry));
- // add message to datastructure
+ // add message to datastructure and send it
data_add_outgoing_message(self, text, chat);
+ net_send_message(self, text, chat->jid);
// clear text input
GtkEntryBuffer* buffer;