feat: add plain text only setting for email composer #105

This commit is contained in:
Linus Rath
2026-03-27 00:38:11 +01:00
parent a46fb9c8af
commit b75d064f20
13 changed files with 125 additions and 29 deletions
+3
View File
@@ -119,6 +119,7 @@ interface SettingsState {
autoSaveDraftInterval: number; // milliseconds
sendConfirmation: boolean;
defaultReplyMode: ReplyMode;
plainTextMode: boolean; // Send plain text only (no rich text editor)
// Privacy & Security
sessionTimeout: number; // minutes (0 = never)
@@ -237,6 +238,7 @@ const DEFAULT_SETTINGS = {
autoSaveDraftInterval: 60000, // 1 minute
sendConfirmation: false,
defaultReplyMode: 'reply' as ReplyMode,
plainTextMode: false,
// Privacy & Security
sessionTimeout: 0, // Never
@@ -344,6 +346,7 @@ export const useSettingsStore = create<SettingsState>()(
autoSaveDraftInterval: state.autoSaveDraftInterval,
sendConfirmation: state.sendConfirmation,
defaultReplyMode: state.defaultReplyMode,
plainTextMode: state.plainTextMode,
sessionTimeout: state.sessionTimeout,
emailNotificationsEnabled: state.emailNotificationsEnabled,
emailNotificationSound: state.emailNotificationSound,