From a5ec2321fd5285c05545970eeea8c7eb5615b109 Mon Sep 17 00:00:00 2001 From: lilia Date: Sat, 9 Apr 2016 00:16:44 -0700 Subject: [PATCH] Use helper function // FREEBIE --- js/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/background.js b/js/background.js index 124fe3f6cb..4b010a2089 100644 --- a/js/background.js +++ b/js/background.js @@ -291,7 +291,7 @@ var ids = groups.pluck('id'); ids.push(pushMessage.source); var message = messages.find(function(message) { - return (message.get('type') === 'outgoing' && + return (!message.isIncoming() && _.contains(ids, message.get('conversationId'))); }); if (message) {