1
0
mirror of https://github.com/moparisthebest/FireTray synced 2024-12-22 05:48:49 -05:00

fix negative message count bug

This commit is contained in:
foudfou 2013-03-21 00:33:09 +01:00
parent 2b2812aee6
commit d91bfd1259

View File

@ -308,7 +308,8 @@ firetray.Messaging = {
addUnreadMessages: function(folder) {
let folderUnreadMsgCount = folder['getNumUnread'](false);
log.debug("folder: "+folder.prettyName+" folderUnreadMsgCount="+folderUnreadMsgCount);
this.newMsgCount += folderUnreadMsgCount;
if (folderUnreadMsgCount > 0)
this.newMsgCount += folderUnreadMsgCount;
},
addHasNewMessages: function(folder) {