Remove double-check of unread count
This same condition is already enforced in the markRead method. // FREEBIE
This commit is contained in:
@@ -179,9 +179,7 @@
|
|||||||
chrome.notifications.clear('signal');
|
chrome.notifications.clear('signal');
|
||||||
Whisper.Notifications.clear();
|
Whisper.Notifications.clear();
|
||||||
getInboxCollection().each(function(model) {
|
getInboxCollection().each(function(model) {
|
||||||
if (model.get('unreadCount') > 0) {
|
|
||||||
model.markRead();
|
model.markRead();
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
chrome.notifications.onClosed.addListener(function(id, byUser) {
|
chrome.notifications.onClosed.addListener(function(id, byUser) {
|
||||||
|
Reference in New Issue
Block a user