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:
parent
2b2812aee6
commit
d91bfd1259
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user