Resolve #567 by removing change of 457

This commit is contained in:
the-djmaze 2022-10-22 16:06:16 +02:00
parent 79387262e3
commit 50ddca2e42

View file

@ -374,13 +374,18 @@ export class FolderModel extends AbstractModel {
return folder.hasVisibleSubfolders() | visible;
},
printableUnreadCount: () => {
printableUnreadCount: () => folder.unreadEmails() || null,
/*
{
// TODO: make this optional in Settings
// https://github.com/the-djmaze/snappymail/issues/457
// https://github.com/the-djmaze/snappymail/issues/567
const
unread = folder.unreadEmails(),
type = folder.type();
// TODO: make isSystemFolder() optional in Settings
return ((!folder.isSystemFolder() || type == FolderType.Inbox) && unread) ? unread : null;
// return ((!folder.isSystemFolder() || type == FolderType.Inbox) && unread) ? unread : null;
},
*/
localName: () => {
let name = folder.name();