don't update unred if the channel/dm is active

This commit is contained in:
Hunter Thornsberry
2025-03-14 15:44:02 -04:00
parent f80bb6c42d
commit 0bef82ec32
+1 -1
View File
@@ -27,6 +27,6 @@ export const SidebarButton = ({
{Icon && <Icon size={16} />}
{element && element}
<span className="flex flex-1 justify-start shrink-0">{label}</span>
{count > 0 && <div className="justify-end notification-count">{count}</div>}
{count > 0 && !active && <div className="justify-end notification-count">{count}</div>}
</Button>
);