courrier multi account restore compose
This commit is contained in:
parent
74dcb1b8ba
commit
cc74bfc728
@ -588,15 +588,24 @@ export default function CourrierPage() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update selected folders state without validation
|
// Use the exact folder name from the account's folders list
|
||||||
|
if (!account.folders.includes(folder)) {
|
||||||
|
console.warn(`Folder ${folder} not found in account ${accountId}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update selected folders state
|
||||||
setSelectedFolders(prev => ({
|
setSelectedFolders(prev => ({
|
||||||
...prev,
|
...prev,
|
||||||
[accountId]: folder
|
[accountId]: folder
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// Change to the selected folder
|
||||||
|
changeFolder(folder, accountId);
|
||||||
|
} else {
|
||||||
|
// For all accounts view, use the original folder name
|
||||||
|
changeFolder(folder, accountId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change to the selected folder without additional validation
|
|
||||||
changeFolder(folder, accountId);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Update the folder button rendering to show selected state based on account
|
// Update the folder button rendering to show selected state based on account
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user