feat(settings): let the user set a default mail account #175

Merged
JMR-dev merged 5 commits from feat-163-default-account into main 2026-07-03 00:44:01 +00:00
5 Commits
Author SHA1 Message Date
Jason Ross d6100462a7 Merge main into feat-163-default-account 2026-07-02 19:33:16 -05:00
Jason Ross d4412ce5f3 Merge main into feat-163-default-account 2026-07-02 19:21:11 -05:00
Jason Ross fce2ae981c Merge main into feat-163-default-account 2026-07-02 19:09:04 -05:00
Jason Ross 788c450cad Merge branch 'main' into feat-163-default-account 2026-07-02 17:34:20 -05:00
JMR-devandClaude Opus 4.8 e06054afb6 feat(settings): let the user set a default mail account
Persist a defaultAccountId preference (SettingsRepository/AppSettings,
following the existing key/field/setter pattern), add a "Default account"
switch to AccountSettingsScreen, and prefer it in ComposeViewModel's
from-account fallback (fromAccountId -> valid default -> first account).
Deleting the default account clears the preference (SettingsRepository
.clearDefaultAccountId), and a stale/foreign id is validated against the
current account list before use so it can never crash or point at a
missing account.

Closes #163

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 17:28:22 -05:00