summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c3
1 files changed, 1 insertions, 2 deletions
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);