diff options
author | xengineering <me@xengineering.eu> | 2022-08-21 10:17:09 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-08-21 10:17:09 +0200 |
commit | a036f4b00cb0c2a7e6c070667ac562f0e585c7e4 (patch) | |
tree | c0bf41ec0d3728c7d4c4b5314b664c91f431b156 /gtk.c | |
parent | 3a20726b2679f9d5966156d83aac782de8234732 (diff) | |
download | limox-a036f4b00cb0c2a7e6c070667ac562f0e585c7e4.tar limox-a036f4b00cb0c2a7e6c070667ac562f0e585c7e4.tar.zst limox-a036f4b00cb0c2a7e6c070667ac562f0e585c7e4.zip |
Implement correct recipient for send_message()
Diffstat (limited to 'gtk.c')
-rw-r--r-- | gtk.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |