Fix crash on read receipt event if no listeners

// FREEBIE
pull/749/head
lilia 9 years ago
parent 647c2761e0
commit d39a19d889

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

Loading…
Cancel
Save