Skip to content

Commit

Permalink
Merge branch 'revert-0703c9c3'
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbuks committed Apr 2, 2024
2 parents 11da00a + 64f0e5c commit 274ebcf
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,22 @@ 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 @@ -188,6 +204,7 @@ const PostMessagePreview = (props: Props) => {
/>
{urlPreview}
{fileAttachmentPreview}
{previewFooter}
</div>
</PostAttachmentContainer>
);
Expand Down

0 comments on commit 274ebcf

Please sign in to comment.