courrier multi account restore compose
This commit is contained in:
parent
ab75d01666
commit
2f53564b1a
@ -391,11 +391,6 @@ export default function CourrierPage() {
|
|||||||
// Update accounts state
|
// Update accounts state
|
||||||
setAccounts(updatedAccounts);
|
setAccounts(updatedAccounts);
|
||||||
console.log('[DEBUG] Updated accounts:', updatedAccounts);
|
console.log('[DEBUG] Updated accounts:', updatedAccounts);
|
||||||
} else {
|
|
||||||
// User is authenticated but doesn't have email credentials
|
|
||||||
setShowLoginNeeded(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Auto-select the first non-All account if available
|
// Auto-select the first non-All account if available
|
||||||
if (updatedAccounts.length > 1) {
|
if (updatedAccounts.length > 1) {
|
||||||
@ -415,6 +410,11 @@ export default function CourrierPage() {
|
|||||||
[updatedAccounts[1].id]: 'INBOX'
|
[updatedAccounts[1].id]: 'INBOX'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// User is authenticated but doesn't have email credentials
|
||||||
|
setShowLoginNeeded(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Preload first page of emails for faster initial rendering
|
// Preload first page of emails for faster initial rendering
|
||||||
if (session?.user?.id) {
|
if (session?.user?.id) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user