Fix crash on read receipt event if no listeners
// FREEBIE
This commit is contained in:
@@ -251,8 +251,10 @@
|
||||
id: message.get('conversationId')
|
||||
});
|
||||
|
||||
// notify frontend listeners
|
||||
conversation.trigger('read', message);
|
||||
if (conversation) {
|
||||
// notify frontend listeners
|
||||
conversation.trigger('read', message);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user