From a036f4b00cb0c2a7e6c070667ac562f0e585c7e4 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 21 Aug 2022 10:17:09 +0200 Subject: Implement correct recipient for send_message() --- gtk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gtk.c') diff --git a/gtk.c b/gtk.c index 42bdb16..45e6f10 100644 --- a/gtk.c +++ b/gtk.c @@ -71,11 +71,10 @@ void send_message(chat_t* chat) { chat_widget_t* chat_widget = (chat_widget_t*)chat->widget; // get recipient and message text - const char* recipient = "unknown@example.com"; // TODO implement this const char* text = gtk_editable_get_text(GTK_EDITABLE(chat_widget->entry)); // execute dummy XMPP send TODO - printf("Sending to %s:\n> %s\n", recipient, text); + printf("Sending to %s:\n> %s\n", chat->jid, text); //// add message content to the chat //GtkWidget* message = gtk_label_new(text); -- cgit v1.2.3-70-g09d2