Use helper function

// FREEBIE
This commit is contained in:
lilia 2016-04-09 00:16:44 -07:00
parent 2f90645142
commit a5ec2321fd

View file

@ -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) {