diff options
-rw-r--r-- | gtk.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,11 +70,11 @@ void send_message(chat_t* chat) { chat_widget_t* chat_widget = (chat_widget_t*)chat->widget; - // get recipient and message text const char* text = gtk_editable_get_text(GTK_EDITABLE(chat_widget->entry)); + const char* self = gtk_editable_get_text(GTK_EDITABLE(connector_jid_entry)); // execute dummy XMPP send TODO - printf("Sending to %s:\n> %s\n", chat->jid, text); + printf("Sending from %s to %s:\n> %s\n", self, chat->jid, text); //// add message content to the chat //GtkWidget* message = gtk_label_new(text); |