courrier preview
This commit is contained in:
parent
bf19cd5015
commit
9e5c2cb92e
@ -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]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user