diff options
author | xengineering <me@xengineering.eu> | 2022-08-21 11:20:37 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-08-21 11:21:51 +0200 |
commit | 40aca0691949f41c27704c1f8c4d05fae655cf26 (patch) | |
tree | 9eb7d90fc08a39c2bbeef9158c5dc8e783dae515 /gtk.c | |
parent | bd516ecdb218f4122acf077bef5a4dbde91653e5 (diff) | |
download | limox-40aca0691949f41c27704c1f8c4d05fae655cf26.tar limox-40aca0691949f41c27704c1f8c4d05fae655cf26.tar.zst limox-40aca0691949f41c27704c1f8c4d05fae655cf26.zip |
Implement message sending
Diffstat (limited to 'gtk.c')
-rw-r--r-- | gtk.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |