[PLT-6744] Add "Only visible to you" note for ephemeral messages (#6790)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
b92d0b0024
Коммит
5840905c7f
@@ -226,6 +226,7 @@ export default class RhsComment extends React.Component {
|
||||
/>
|
||||
);
|
||||
|
||||
let visibleMessage;
|
||||
if (post.props && post.props.from_webhook) {
|
||||
if (post.props.override_username && global.window.mm_config.EnablePostUsernameOverride === 'true') {
|
||||
userProfile = (
|
||||
@@ -259,6 +260,15 @@ export default class RhsComment extends React.Component {
|
||||
disablePopover={true}
|
||||
/>
|
||||
);
|
||||
|
||||
visibleMessage = (
|
||||
<span className='post__visibility'>
|
||||
<FormattedMessage
|
||||
id='post_info.message.visible'
|
||||
defaultMessage='(Only visible to you)'
|
||||
/>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
let failedPostOptions;
|
||||
@@ -430,6 +440,7 @@ export default class RhsComment extends React.Component {
|
||||
isFlagged={this.props.isFlagged}
|
||||
isEphemeral={isEphemeral}
|
||||
/>
|
||||
{visibleMessage}
|
||||
</div>
|
||||
{options}
|
||||
</div>
|
||||
|
||||
Ссылка в новой задаче
Block a user