Browse Source

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

pull/497/head
Hunter Thornsberry 1 year ago
parent
commit
0bef82ec32
  1. 2
      src/components/UI/Sidebar/sidebarButton.tsx

2
src/components/UI/Sidebar/sidebarButton.tsx

@ -27,6 +27,6 @@ export const SidebarButton = ({
{Icon && <Icon size={16} />} {Icon && <Icon size={16} />}
{element && element} {element && element}
<span className="flex flex-1 justify-start shrink-0">{label}</span> <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> </Button>
); );

Loading…
Cancel
Save