1
0
mirror of https://github.com/moparisthebest/FireTray synced 2025-01-08 12:08:05 -05:00
This commit is contained in:
foudfou 2013-03-21 08:57:17 +01:00
parent 8c1ae188b2
commit 6b1bd0cfe6

View File

@ -308,6 +308,9 @@ firetray.Messaging = {
addUnreadMessages: function(folder) {
let folderUnreadMsgCount = folder['getNumUnread'](false);
log.debug("folder: "+folder.prettyName+" folderUnreadMsgCount="+folderUnreadMsgCount);
/* nsMsgDBFolder::GetNumUnread basically returns mNumUnreadMessages +
mNumPendingUnreadMessages, while mNumPendingUnreadMessages may get -1
when updated from the cache. Which means getNumUnread might return -1. */
if (folderUnreadMsgCount > 0)
this.newMsgCount += folderUnreadMsgCount;
},