From 1407050052f356a4d135e8788566393dd7b6be6c Mon Sep 17 00:00:00 2001 From: alma Date: Wed, 16 Apr 2025 20:49:38 +0200 Subject: [PATCH] Neah version mail remove mail correction 5 --- app/mail/page.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/mail/page.tsx b/app/mail/page.tsx index cabb2d2..33f8682 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -1554,13 +1554,6 @@ export default function MailPage() { // Only update unread count when switching to Inbox if (newMailbox === 'INBOX') { setUnreadCount(data.unreadCount); - } else { - // Keep the existing unread count when switching to other folders - const inboxResponse = await fetch('/api/mail?folder=INBOX'); - if (inboxResponse.ok) { - const inboxData = await inboxResponse.json(); - setUnreadCount(inboxData.unreadCount); - } } } catch (err) { setError(err instanceof Error ? err.message : 'Failed to fetch emails');