mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
sv_ev_room_message: check if message->id is not NULL
This commit is contained in:
parent
5c6f5ba0f7
commit
f7474cd72c
@ -296,7 +296,7 @@ sv_ev_room_message(ProfMessage *message)
|
||||
char *mynick = muc_nick(mucwin->roomjid);
|
||||
|
||||
// messages from ourselves
|
||||
if (g_strcmp0(mynick, message->jid->resourcepart) == 0) {
|
||||
if (g_strcmp0(mynick, message->jid->resourcepart) == 0 && message->id != NULL) {
|
||||
// test if message was sent from this client
|
||||
// we check the </origin-id> for this we calculate a hash into it so we can detect
|
||||
// whether this client sent it. See connection_create_stanza_id()
|
||||
|
Loading…
Reference in New Issue
Block a user