From d8176062f52225ee7ffb30909410cf2bd7de6e94 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sun, 13 Oct 2013 01:36:06 +0200 Subject: [PATCH] only show number of unread items if larger than 0 --- src/js/controller/mail-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/controller/mail-list.js b/src/js/controller/mail-list.js index c108f41..1acd66d 100644 --- a/src/js/controller/mail-list.js +++ b/src/js/controller/mail-list.js @@ -99,7 +99,7 @@ define(function(require) { return; } // set unread count in folder model - getFolder().count = unreadCount; + getFolder().count = (unreadCount && unreadCount > 0) ? unreadCount : undefined; $scope.$apply(); emailDao.imapSync(options, function(err) {