Private
Public Access
1
0

kptui: get rid of unread count

This commit is contained in:
2026-02-12 13:08:58 -08:00
parent 7c117eb52e
commit e807528466

View File

@@ -189,11 +189,6 @@ fn render_conversations(frame: &mut Frame, app: &AppState, area: Rect, in_split:
.iter()
.map(|c| {
let is_active = app.active_conversation_id.as_deref() == Some(c.id.as_str());
let unread = if c.unread_count > 0 {
format!(" ({})", c.unread_count)
} else {
String::new()
};
let header = Line::from(vec![
Span::styled(
if c.unread_count > 0 { "" } else { " " },
@@ -209,7 +204,6 @@ fn render_conversations(frame: &mut Frame, app: &AppState, area: Rect, in_split:
c.title.clone(),
Style::default().add_modifier(Modifier::BOLD),
),
Span::raw(unread),
]);
let preview = Line::from(Span::styled(
c.preview.clone(),