don't update unred if the channel/dm is active
This commit is contained in:
1 parent
f80bb6c42d
commit
0bef82ec32
1 file changed
+1
-1
@@ -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>
|
||||||
);
|
);
|
||||||
Reference in new issue
Block a user