link fe: display unread counts for public channels
Was previously only displaying for the private channel.
@@ -45,6 +45,9 @@ export class ChannelsSidebar extends Component {
let selected = (props.selected === path);
let linkCount = !!props.links[path] ? props.links[path].totalItems : 0;
+ const unseenCount = !!props.links[path]
+ ? props.links[path].unseenCount
+ : linkCount
return (
<ChannelsItem
@@ -53,6 +56,7 @@ export class ChannelsSidebar extends Component {
members={props.paths[path]}
selected={selected}
linkCount={linkCount}
+ unseenCount={unseenCount}
name={name}/>
)
});
