fixes
This commit is contained in:
@@ -42,6 +42,7 @@ pub fn render(f: &mut Frame, area: Rect, app: &mut App) {
|
||||
.iter()
|
||||
.map(|chat| {
|
||||
let is_selected = app.selected_chat_id == Some(chat.id);
|
||||
let pin_icon = if chat.is_pinned { "📌 " } else { "" };
|
||||
let prefix = if is_selected { "▌ " } else { " " };
|
||||
|
||||
let username_text = chat.username.as_ref()
|
||||
@@ -54,7 +55,7 @@ pub fn render(f: &mut Frame, area: Rect, app: &mut App) {
|
||||
String::new()
|
||||
};
|
||||
|
||||
let content = format!("{}{}{}{}", prefix, chat.title, username_text, unread_badge);
|
||||
let content = format!("{}{}{}{}{}", prefix, pin_icon, chat.title, username_text, unread_badge);
|
||||
let style = Style::default().fg(Color::White);
|
||||
|
||||
ListItem::new(content).style(style)
|
||||
|
||||
Reference in New Issue
Block a user