BlueGit

ict rusty-teams

fix(sidebar): no chat count on section headers

- Teams shows none; the unread badge on collapsed sections stays

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-09 · 3 weeks ago

Hash
d56302d06cfe2f9be9913629df2b564f1f8202d2
Parent
df4f177f
1 file changed +0 −6
crates/app/src/views/sidebar.rs +0 −6
@@ -844,12 +844,6 @@ impl SidebarView {
844 844 .when(section.collapsed && section.unread_chats > 0, |header| {
845 845 header.child(count_badge(section.unread_chats, false))
846 846 })
847 .child(
848 div()
849 .text_size(px(11.))
850 .text_color(theme::text_faint())
851 .child(section.count.to_string()),
852 )
853 847 .on_click(cx.listener(move |this, _, _, cx| {
854 848 let id = toggle_id.clone();
855 849 this.state
@@ -844,12 +844,6 @@ impl SidebarView {
844 .when(section.collapsed && section.unread_chats > 0, |header| {
844 .when(section.collapsed && section.unread_chats > 0, |header| {
845 header.child(count_badge(section.unread_chats, false))
845 header.child(count_badge(section.unread_chats, false))
846 })
846 })
847 .child(
848 div()
849 .text_size(px(11.))
850 .text_color(theme::text_faint())
851 .child(section.count.to_string()),
852 )
853 .on_click(cx.listener(move |this, _, _, cx| {
847 .on_click(cx.listener(move |this, _, _, cx| {
854 let id = toggle_id.clone();
848 let id = toggle_id.clone();
855 this.state
849 this.state