master
Vitaliy Filippov 2018-12-02 14:44:14 +03:00
parent 6c987cd745
commit a48473673f
1 changed files with 3 additions and 2 deletions

View File

@ -122,11 +122,12 @@ var Store = module.exports = {
{
let icon = (account.folderTypes[f.name] ? 'mail_'+account.folderTypes[f.name] : 'folder');
account.folders.push({ name: f.name, icon: icon, unreadCount: f.unread_count-0, folderId: f.id });
account.folders[0].unreadCount -= -f.unread_count;
account.folders[0].unreadCount += (f.unread_count-0);
if (account.folderTypes[f.name])
{
accounts[0].folders[ixOfAll[account.folderTypes[f.name]]].unreadCount -= -f.unread_count;
accounts[0].folders[ixOfAll[account.folderTypes[f.name]]].unreadCount += (f.unread_count-0);
}
account.unreadCount += (f.unread_count-0);
}
accounts.push(account);
accounts[0].unreadCount += account.unreadCount;