courrier preview

This commit is contained in:
alma 2025-04-30 23:54:43 +02:00
parent bf19cd5015
commit 9e5c2cb92e

View File

@ -173,7 +173,9 @@ export default function EmailSidebar({
let folderUnreadCount = 0;
// Check if this is an inbox folder (only show unread counts for inbox folders)
const isInboxFolder = baseFolderName.toLowerCase().includes('inbox');
// Use exact matching instead of includes() to avoid matching substrings in folder names
const folderLower = baseFolderName.toLowerCase();
const isInboxFolder = folderLower === 'inbox';
// Only calculate unread count for inbox folders
if (isInboxFolder && unreadCount && unreadCount[accountId]) {