Skip to content

Commit

Permalink
Merge branch 'rm/320644' into 'master'
Browse files Browse the repository at this point in the history
Fix: post_preview footer removed

See merge request kchat/webapp!696
  • Loading branch information
antonbuks committed Apr 2, 2024
2 parents 533db41 + 547f7a2 commit 0703c9c
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,22 +138,6 @@ const PostMessagePreview = (props: Props) => {
teamUrl = currentTeamUrl;
}

const previewFooter = channelDisplayName || previewFooterMessage ? (
<div className='post__preview-footer'>
<p>
{previewFooterMessage || (
<FormattedMessage
id='post_message_preview.channel'
defaultMessage='Only visible to users in ~{channel}'
values={{
channel: channelDisplayName,
}}
/>
)}
</p>
</div>
) : null;

return (
<PostAttachmentContainer
className='permalink'
Expand Down Expand Up @@ -204,7 +188,6 @@ const PostMessagePreview = (props: Props) => {
/>
{urlPreview}
{fileAttachmentPreview}
{previewFooter}
</div>
</PostAttachmentContainer>
);
Expand Down

0 comments on commit 0703c9c

Please sign in to comment.