chat implemented, testing needed

This commit is contained in:
2026-05-20 00:52:56 +02:00
parent c7de2dbcdc
commit d52af2c495
14 changed files with 144 additions and 17 deletions

View File

@@ -76,6 +76,11 @@ export default function ChatSidebar() {
{chat.chat_type}
</div>
</div>
{(chat.unread_count ?? 0) > 0 && (
<span className="ml-auto shrink-0 rounded-full bg-brand-accent px-1.5 py-0.5 text-[10px] font-bold leading-none text-brand-bg">
{(chat.unread_count ?? 0) > 99 ? "99+" : chat.unread_count}
</span>
)}
</NavLink>
</li>
))}