feat: add support for embedded files in email attachments and enhance logging in MailViewer

This commit is contained in:
Flavio Fois
2026-02-05 12:39:43 +01:00
parent e9b013412a
commit 7cfc12c6ef
2 changed files with 65 additions and 3 deletions

View File

@@ -9,6 +9,7 @@
import { mailState } from "$lib/stores/mail-state.svelte";
import { settingsStore } from "$lib/stores/settings.svelte";
import * as m from "$lib/paraglide/messages";
import { dev } from "$app/environment";
let unregisterEvents = () => {};
let isLoading = $state(false);
@@ -22,11 +23,13 @@
}
$effect(() => {
console.log("Current email changed:", mailState.currentEmail);
if(dev) {
console.log(mailState.currentEmail)
}
console.info("Current email changed:", mailState.currentEmail?.subject);
if(mailState.currentEmail !== null) {
sidebarOpen.set(false);
}
console.log(mailState.currentEmail?.attachments)
})
onDestroy(() => {