Fix crash on read receipt event if no listeners

// FREEBIE
This commit is contained in:
lilia 2016-03-18 17:06:35 -07:00
parent 647c2761e0
commit d39a19d889

View file

@ -251,8 +251,10 @@
id: message.get('conversationId')
});
// notify frontend listeners
conversation.trigger('read', message);
if (conversation) {
// notify frontend listeners
conversation.trigger('read', message);
}
});
}
});