widget courrier refactor

This commit is contained in:
alma 2026-01-15 23:40:46 +01:00
parent 28a2866e13
commit 30111b86f7

View File

@ -82,7 +82,7 @@ export function Email() {
// Fetch emails from all accounts in parallel
const emailPromises = accounts.map(async (account) => {
try {
const url = `/api/courrier?folder=INBOX&page=1&perPage=5&accountId=${encodeURIComponent(account.id)}${forceRefresh ? '&refresh=true' : ''}`;
const url = `/api/courrier?folder=INBOX&page=1&perPage=33&accountId=${encodeURIComponent(account.id)}${forceRefresh ? '&refresh=true' : ''}`;
const response = await fetch(url);
if (!response.ok) {
const errorMsg = `Failed to fetch emails for ${account.email}`;