From 74dcb1b8ba19b23b9d2eaec1c7a715d8b0809b6e Mon Sep 17 00:00:00 2001 From: alma Date: Mon, 28 Apr 2025 17:15:43 +0200 Subject: [PATCH] courrier multi account restore compose --- app/courrier/page.tsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 2b64fbfa..813faab4 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -163,25 +163,6 @@ export default function CourrierPage() { // Track folder visibility per account const [visibleFolders, setVisibleFolders] = useState>({}); - // Update account folders when mailboxes change - useEffect(() => { - setAccounts(prev => { - const updated = [...prev]; - const accountIndex = updated.findIndex(acc => acc.id === selectedAccount?.id); - if (accountIndex !== -1) { - updated[accountIndex] = { - ...updated[accountIndex], - folders: mailboxes - }; - setVisibleFolders(prev => ({ - ...prev, - [updated[accountIndex].id]: mailboxes - })); - } - return updated; - }); - }, [mailboxes, selectedAccount]); - // Debug accounts state useEffect(() => { console.log('Current accounts state:', accounts);