mirror of
https://github.com/moparisthebest/FireTray
synced 2025-01-08 12:08:05 -05:00
cleaning
This commit is contained in:
parent
8c1ae188b2
commit
6b1bd0cfe6
@ -308,6 +308,9 @@ firetray.Messaging = {
|
|||||||
addUnreadMessages: function(folder) {
|
addUnreadMessages: function(folder) {
|
||||||
let folderUnreadMsgCount = folder['getNumUnread'](false);
|
let folderUnreadMsgCount = folder['getNumUnread'](false);
|
||||||
log.debug("folder: "+folder.prettyName+" folderUnreadMsgCount="+folderUnreadMsgCount);
|
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)
|
if (folderUnreadMsgCount > 0)
|
||||||
this.newMsgCount += folderUnreadMsgCount;
|
this.newMsgCount += folderUnreadMsgCount;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user