1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

sv_ev_room_message: check if message->id is not NULL

This commit is contained in:
Michael Vetter 2019-10-18 11:43:30 +02:00
parent 5c6f5ba0f7
commit f7474cd72c

View File

@ -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()