From 7f4ef6e9e7258f0467eeeb94f1568816e31acad7 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 17 Sep 2015 13:46:58 -0700 Subject: [PATCH] Remove double-check of unread count This same condition is already enforced in the markRead method. // FREEBIE --- js/chromium.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/chromium.js b/js/chromium.js index d8b9befcd..6d2a4e6ee 100644 --- a/js/chromium.js +++ b/js/chromium.js @@ -179,9 +179,7 @@ chrome.notifications.clear('signal'); Whisper.Notifications.clear(); getInboxCollection().each(function(model) { - if (model.get('unreadCount') > 0) { - model.markRead(); - } + model.markRead(); }); }); chrome.notifications.onClosed.addListener(function(id, byUser) {