don't update unred if the channel/dm is active
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user