Fix crash on read receipt event if no listeners
// FREEBIE
This commit is contained in:
parent
647c2761e0
commit
d39a19d889
1 changed files with 4 additions and 2 deletions
|
@ -251,8 +251,10 @@
|
|||
id: message.get('conversationId')
|
||||
});
|
||||
|
||||
// notify frontend listeners
|
||||
conversation.trigger('read', message);
|
||||
if (conversation) {
|
||||
// notify frontend listeners
|
||||
conversation.trigger('read', message);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue