feat: add setting to hide inline images from attachment list

This commit is contained in:
Linus Rath
2026-04-18 01:07:34 +02:00
parent d4f7ae522e
commit 1689315c3a
18 changed files with 96 additions and 12 deletions
+7
View File
@@ -198,6 +198,10 @@ interface SettingsState {
attachmentReminderEnabled: boolean;
attachmentReminderKeywords: string[];
// Hide inline images (images referenced by cid in the HTML body) from the
// attachment list shown above the message body.
hideInlineImageAttachments: boolean;
// Sidebar Apps
sidebarApps: SidebarApp[];
keepAppsLoaded: boolean;
@@ -365,6 +369,8 @@ const DEFAULT_SETTINGS = {
'pielikumā',
] as string[],
hideInlineImageAttachments: true,
// Sidebar Apps
sidebarApps: [] as SidebarApp[],
keepAppsLoaded: false,
@@ -467,6 +473,7 @@ export const useSettingsStore = create<SettingsState>()(
emailKeywords: state.emailKeywords,
attachmentReminderEnabled: state.attachmentReminderEnabled,
attachmentReminderKeywords: state.attachmentReminderKeywords,
hideInlineImageAttachments: state.hideInlineImageAttachments,
sidebarApps: state.sidebarApps,
keepAppsLoaded: state.keepAppsLoaded,
debugMode: state.debugMode,