about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-03 18:04:07 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-03 18:04:07 +0200
commitaecbeff8ba07c946407033e69f4d78a4b69273a7 (patch)
treecbe24510d82c23b3c817bb58269c179abeaa8c40 /src
parentb1343cd3ac5647b3ca61efde279da59cc94fde73 (diff)
downloadprofani-tty-aecbeff8ba07c946407033e69f4d78a4b69273a7.tar.gz
message.c: Use message->to_jid instead of to_jid
This one will always be set.
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index 1bb13e83..a50b5518 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -1322,7 +1322,7 @@ _handle_chat(xmpp_stanza_t *const stanza, gboolean is_mam, gboolean is_carbon)
             char *mybarejid = connection_get_barejid();
 
             // if we are the recipient, treat as standard incoming message
-            if (g_strcmp0(mybarejid, to_jid->barejid) == 0) {
+            if (g_strcmp0(mybarejid, message->to_jid->barejid) == 0) {
                 sv_ev_incoming_carbon(message);
                 // else treat as a sent message
             } else {