From fb0e4dabbaf3caa70e69064e44588a11febae788 Mon Sep 17 00:00:00 2001 From: benya Date: Sun, 8 Mar 2026 20:52:54 +0300 Subject: [PATCH] fix(chat-list): show separate pin and mute indicators without replacing avatar --- web/src/components/ChatList.tsx | 50 ++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/web/src/components/ChatList.tsx b/web/src/components/ChatList.tsx index 87a8c71..def24cd 100644 --- a/web/src/components/ChatList.tsx +++ b/web/src/components/ChatList.tsx @@ -240,7 +240,7 @@ export function ChatList() { chat avatar ) : (
- {chat.pinned ? "📌" : (chat.display_title || chat.title || chat.type).slice(0, 1)} + {(chat.display_title || chat.title || chat.type).slice(0, 1)}
)} {chat.type === "private" && chat.counterpart_is_online ? ( @@ -250,24 +250,36 @@ export function ChatList() {

{chatLabel(chat)}

- {(chat.unread_count ?? 0) > 0 || (chat.unread_mentions_count ?? 0) > 0 ? ( - - {(chat.unread_mentions_count ?? 0) > 0 ? ( - - @ - - ) : null} - {(chat.unread_count ?? 0) > 0 ? ( - - {chat.unread_count} - - ) : null} - - ) : ( - - {formatChatListTime(chat.last_message_created_at)} - - )} + + {chat.pinned ? ( + + 📌 + + ) : null} + {chat.muted ? ( + + 🔕 + + ) : null} + {(chat.unread_count ?? 0) > 0 || (chat.unread_mentions_count ?? 0) > 0 ? ( + + {(chat.unread_mentions_count ?? 0) > 0 ? ( + + @ + + ) : null} + {(chat.unread_count ?? 0) > 0 ? ( + + {chat.unread_count} + + ) : null} + + ) : ( + + {formatChatListTime(chat.last_message_created_at)} + + )} +

{chatPreviewLabel(chat)}