only show number of unread items if larger than 0

This commit is contained in:
Tankred Hase 2013-10-13 01:36:06 +02:00
parent 7a939db5a3
commit d8176062f5
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ define(function(require) {
return; return;
} }
// set unread count in folder model // set unread count in folder model
getFolder().count = unreadCount; getFolder().count = (unreadCount && unreadCount > 0) ? unreadCount : undefined;
$scope.$apply(); $scope.$apply();
emailDao.imapSync(options, function(err) { emailDao.imapSync(options, function(err) {