summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-21 11:20:37 +0200
committerxengineering <me@xengineering.eu>2022-08-21 11:21:51 +0200
commit40aca0691949f41c27704c1f8c4d05fae655cf26 (patch)
tree9eb7d90fc08a39c2bbeef9158c5dc8e783dae515 /gtk.c
parentbd516ecdb218f4122acf077bef5a4dbde91653e5 (diff)
downloadlimox-40aca0691949f41c27704c1f8c4d05fae655cf26.tar
limox-40aca0691949f41c27704c1f8c4d05fae655cf26.tar.zst
limox-40aca0691949f41c27704c1f8c4d05fae655cf26.zip
Implement message sending
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;