Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-35715: CRT removes comment count #8134

Merged
merged 1 commit into from
May 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions components/post_view/post_info/post_info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default class PostInfo extends React.PureComponent<Props, State> {
return null;
}

const {isMobile, isReadOnly} = this.props;
const {isMobile, isReadOnly, collapsedThreadsEnabled} = this.props;
const hover = this.props.hover || this.state.showEmojiPicker || this.state.showDotMenu || this.state.showOptionsMenuWithoutHover;

const showCommentIcon = fromAutoResponder ||
Expand All @@ -201,7 +201,7 @@ export default class PostInfo extends React.PureComponent<Props, State> {
commentIcon = (
<CommentIcon
handleCommentClick={this.props.handleCommentClick}
commentCount={this.props.replyCount}
commentCount={collapsedThreadsEnabled ? undefined : this.props.replyCount}
postId={post.id}
extraClass={commentIconExtraClass}
/>
Expand Down Expand Up @@ -258,11 +258,11 @@ export default class PostInfo extends React.PureComponent<Props, State> {
data-testid={`post-menu-${post.id}`}
className={'col post-menu'}
>
{!this.props.collapsedThreadsEnabled && dotMenu}
{!collapsedThreadsEnabled && dotMenu}
{postReaction}
{postFlagIcon}
{commentIcon}
{this.props.collapsedThreadsEnabled && dotMenu}
{collapsedThreadsEnabled && dotMenu}
</div>
);
};
Expand Down