A collapsed category hides its unread channels, and its count is channels, not unreads #275

Closed
opened 2026-10-07 20:42:56 -04:00 by Salastil · 1 comment
Owner

BufferList.tsx:590-592: section.buffers.filter((b) => !folded || b.id === activeBufferId) - a collapsed category keeps only the active channel, so channels with unread messages or mentions disappear. The count on the collapsed heading (580-582) is the total number of channels, not unreads.

Discord keeps unread and mentioned channels visible under a collapsed category.

Fix: keep unread/mentioned rows visible when folded; show an unread/mention count on the folded heading.

Part of the v1.0 UI pass.

`BufferList.tsx:590-592`: `section.buffers.filter((b) => !folded || b.id === activeBufferId)` - a collapsed category keeps only the active channel, so channels with unread messages or mentions disappear. The count on the collapsed heading (580-582) is the total number of channels, not unreads. Discord keeps unread and mentioned channels visible under a collapsed category. **Fix:** keep unread/mentioned rows visible when folded; show an unread/mention count on the folded heading. _Part of the v1.0 UI pass._
Salastil added this to the v1.0 milestone 2026-10-07 20:42:56 -04:00
Salastil added the bug label 2026-10-07 20:42:56 -04:00
Author
Owner

Finished: 6598043.

Before (left) and after (right) - both categories folded:

folded

A folded heading used to keep only the open channel, hiding every channel with something waiting, and show how many channels it had. It now keeps the unread ones visible under it and shows how much is waiting in them, red if any holds a mention, and falls back to the channel count when nothing is. (The fold/unfold animation and the rotating chevron are in #283.)

Finished: [6598043](https://git.salastil.com/Salastil/moho/commit/65980434838a52d1a9ad3ae97b84acae2e367de9). Before (left) and after (right) - both categories folded: ![folded](https://git.salastil.com/attachments/3a1f2d86-ec82-4ae9-b35e-528c1ee4c5f2) A folded heading used to keep only the open channel, hiding every channel with something waiting, and show how many channels it had. It now **keeps the unread ones visible** under it and shows **how much is waiting** in them, red if any holds a mention, and falls back to the channel count when nothing is. (The fold/unfold animation and the rotating chevron are in #283.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Salastil/moho#275