From 50ddca2e4202fc9f09c858bf5ca1c0065ca41a46 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sat, 22 Oct 2022 16:06:16 +0200 Subject: [PATCH] Resolve #567 by removing change of 457 --- dev/Model/FolderCollection.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dev/Model/FolderCollection.js b/dev/Model/FolderCollection.js index 99a72d3ea..da54958af 100644 --- a/dev/Model/FolderCollection.js +++ b/dev/Model/FolderCollection.js @@ -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();