kptui: get rid of unread count
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user