1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

message.c: Use message->to_jid instead of to_jid

This one will always be set.
This commit is contained in:
Michael Vetter 2020-07-03 18:04:07 +02:00
parent b1343cd3ac
commit aecbeff8ba

View File

@ -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 {