mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-04 08:15:41 +00:00
fix: show the translated message when no Archive folder can be created #1176
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user