Team Chat sidebar — bold names and unread counts for what is waiting
Look at the Team Chat sidebar. A conversation with something waiting for you has its name in bold and a small numbered badge, whether the waiting thing is a mention, a reply you owe, or plain messages you have not read yet. Mark a conversation unread and the bold name and the number come straight back, because the row reads your own read position rather than only your mentions.
On this page
What the row shows
- Bold name — the conversation has something for you. A row with nothing waiting keeps its ordinary weight.
- A count badge — how many are waiting. For a direct message that is the messages sitting past your read position; for a channel it is that same count, and it never drops below the mentions and replies you owe, so a mention is never hidden under a larger number.
- The conversation you have open still draws its own highlight, so you can tell where you are.
It agrees with "Show unreads only"
The sidebar's Show unreads only switch lists the conversations whose row has something waiting. That switch and the badge read the same number, so switching it on can never list a row that looks quiet, and it can never hide a row that shows a number.
After Mark unread
Marking a message, or a whole conversation, unread moves your own read position backward. The row notices immediately: the name goes bold and the count comes back, on this computer and on the others you have signed in. That is the point of marking something unread — the sidebar is where you go to find it again.
Two cases that stay quiet
- Your own message at the newest end. A conversation whose newest message you typed yourself does not go bold for you just because you opened it — the app does not treat your own message as evidence that somebody is waiting.
- A conversation you have fully read. Once your read position is at the newest message, the row goes back to plain, even if an old count is still stored.
Where it lives in the code
- sidebar-unread-badges.ts derives one unread count per conversation from the read state the app already holds, and combines it with the mentions count so both answers agree.
- TeamChatSidebar.tsx hands that number to every row and to the unreads-only filter.
- SidebarChannelList.tsx draws the bold name and the badge.
Last verified 2026-11-21