Use helper function
// FREEBIE
This commit is contained in:
parent
2f90645142
commit
a5ec2321fd
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@
|
||||||
var ids = groups.pluck('id');
|
var ids = groups.pluck('id');
|
||||||
ids.push(pushMessage.source);
|
ids.push(pushMessage.source);
|
||||||
var message = messages.find(function(message) {
|
var message = messages.find(function(message) {
|
||||||
return (message.get('type') === 'outgoing' &&
|
return (!message.isIncoming() &&
|
||||||
_.contains(ids, message.get('conversationId')));
|
_.contains(ids, message.get('conversationId')));
|
||||||
});
|
});
|
||||||
if (message) {
|
if (message) {
|
||||||
|
|
Loading…
Reference in a new issue