Skip to content

Commit

Permalink
Merge branch 'fix/day-separator-for-pinned-messages' into 'master'
Browse files Browse the repository at this point in the history
Pressing pinned post causes every line to include today

See merge request kchat/webapp!605
  • Loading branch information
antonbuks committed Feb 6, 2024
2 parents 64f6563 + 0417a7f commit c57256b
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 c57256b

Please sign in to comment.