Skip to content

Commit

Permalink
show date seperator if not center channel
Browse files Browse the repository at this point in the history
Changelog: fixed
  • Loading branch information
Benoit Nau committed Feb 6, 2024
1 parent 64f6563 commit 0417a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/channels/src/components/post/post_component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ const PostComponent = (props: Props): JSX.Element => {
className={props.location === 'SEARCH' ? 'search-item__container' : undefined}
data-testid={props.location === 'SEARCH' ? 'search-item-container' : undefined}
>
{(isSearchResultItem || props.isPinnedPosts || props.isFlagged) && <DateSeparator date={currentPostDay}/>}
{(isSearchResultItem || (props.location !== Locations.CENTER && props.isPinnedPosts) || props.isFlagged) && <DateSeparator date={currentPostDay}/>}
<PostAriaLabelDiv
ref={postRef}
role='listitem'
Expand Down

0 comments on commit 0417a7f

Please sign in to comment.