Skip to content

fix(desktop): persist Inbox Show unread only preference (#3669) - #3680

Open
NanoRisk6 wants to merge 1 commit into
block:mainfrom
NanoRisk6:fix/inbox-unread-only-persist-3669
Open

fix(desktop): persist Inbox Show unread only preference (#3669)#3680
NanoRisk6 wants to merge 1 commit into
block:mainfrom
NanoRisk6:fix/inbox-unread-only-persist-3669

Conversation

@NanoRisk6

Copy link
Copy Markdown

What Problem This Solves

The Inbox Show unread only toggle reset to off whenever the Inbox remounted (navigate away/return or restart). Users had to re-enable it every visit. Fixes #3669.

Why This Change Was Made

Component state initialized to false with no persistence. Prefer localStorage (same pattern as feed done/unread keys and other desktop prefs) so the choice survives remounts and restarts.

User Impact

  • Enabling the toggle sticks across Inbox visits and app restarts
  • Disabling it also persists
  • No saved preference → still defaults to off

Evidence

node --experimental-strip-types --test desktop/src/features/home/lib/inboxUnreadOnlyPreference.test.mjs
# 5 passed

Store the toggle in localStorage so remounting Inbox or restarting Buzz
restores the last choice. Default remains off when no preference is saved.

Signed-off-by: NanoRisk6 <aidashtherapy@gmail.com>
@NanoRisk6
NanoRisk6 requested a review from a team as a code owner July 30, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persist Inbox "Show unread only" toggle across visits

1 participant