fix: show the translated message when no Archive folder can be created #1176

This commit is contained in:
Linus Rath
2026-10-06 23:31:20 +02:00
parent 7f78d4837a
commit 506f47e155
+4
View File
@@ -2420,6 +2420,10 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) {
void refreshMailboxes();
} catch (error) {
console.error("Failed to archive email:", error);
if (error instanceof ArchiveMailboxNotFoundError) {
toast.error(t('email_viewer.archive_mailbox_not_found'));
return;
}
toast.error(t('notifications.error_archiving'), error instanceof Error ? error.message : undefined);
}
};