summaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-21 10:17:09 +0200
committerxengineering <me@xengineering.eu>2022-08-21 10:17:09 +0200
commita036f4b00cb0c2a7e6c070667ac562f0e585c7e4 (patch)
treec0bf41ec0d3728c7d4c4b5314b664c91f431b156 /gtk.c
parent3a20726b2679f9d5966156d83aac782de8234732 (diff)
downloadlimox-a036f4b00cb0c2a7e6c070667ac562f0e585c7e4.tar
limox-a036f4b00cb0c2a7e6c070667ac562f0e585c7e4.tar.zst
limox-a036f4b00cb0c2a7e6c070667ac562f0e585c7e4.zip
Implement correct recipient for send_message()
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);