From 40aca0691949f41c27704c1f8c4d05fae655cf26 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 21 Aug 2022 11:20:37 +0200 Subject: Implement message sending --- gtk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk.c') 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; -- cgit v1.2.3-70-g09d2