mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
message.c: Use message->to_jid instead of to_jid
This one will always be set.
This commit is contained in:
parent
b1343cd3ac
commit
aecbeff8ba
@ -1322,7 +1322,7 @@ _handle_chat(xmpp_stanza_t *const stanza, gboolean is_mam, gboolean is_carbon)
|
|||||||
char *mybarejid = connection_get_barejid();
|
char *mybarejid = connection_get_barejid();
|
||||||
|
|
||||||
// if we are the recipient, treat as standard incoming message
|
// 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);
|
sv_ev_incoming_carbon(message);
|
||||||
// else treat as a sent message
|
// else treat as a sent message
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user