Skip to content

Commit

Permalink
fix(mail(js)): update unseen count when reaching zero
Browse files Browse the repository at this point in the history
Fixes #5381
  • Loading branch information
cgx committed Sep 7, 2021
1 parent e43a721 commit 2d25e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Mailer/Account.service.js
Expand Up @@ -143,7 +143,7 @@
Account.$$resource.post('', 'unseenCount', {mailboxes: unseenCountFolders}).then(function(data) {
_.forEach(Account.$accounts, function(account) {
_.forEach(account.$$flattenMailboxes, function(mailbox) {
if (data[mailbox.id]) {
if (angular.isDefined(data[mailbox.id])) {
mailbox.unseenCount = data[mailbox.id];
}
});
Expand Down

0 comments on commit 2d25e18

Please sign in to comment.