Skip to content

fix: hide Recents heading when every recent thread is starred - #192

Merged
trick77 merged 1 commit into
masterfrom
fix/hide-empty-recents-heading
Sep 17, 2026
Merged

trick77 merged 1 commit into
masterfrom
fix/hide-empty-recents-heading

Conversation

@trick77

@trick77 trick77 commented Sep 17, 2026

Copy link
Copy Markdown
Owner

The sidebar showed an empty "Recents" heading when the only recent thread was starred. The old condition compared threads.length against the starred–recent intersection count, which could be true even when the non-starred groups were empty.\n\nReplaced with a direct check on groups — if no group has items, "Recents" stays hidden.\n\nIncludes a test covering the starred-only scenario.

The condition compared threads.length against the starred–recent
intersection, which could be true even when groups (the non-starred
content) was empty — e.g. when the only recent thread was starred.
Check groups directly instead.
@trick77
trick77 merged commit e4714e4 into master Sep 17, 2026
2 checks passed
@trick77
trick77 deleted the fix/hide-empty-recents-heading branch September 17, 2026 18:34
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.

1 participant