diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-07-25 21:10:39 +0200 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-07-25 12:10:39 -0700 |
commit | 5840905c7ff4cd37c54a0bbebddaeb2969c120cb (patch) | |
tree | 04bdebc26dbbf0e3bb8680e07a8c50c9dd4bc08f /webapp/components/rhs_comment.jsx | |
parent | b92d0b002438acedd13fc663042c39d1b6a14e3c (diff) | |
download | chat-5840905c7ff4cd37c54a0bbebddaeb2969c120cb.tar.gz chat-5840905c7ff4cd37c54a0bbebddaeb2969c120cb.tar.bz2 chat-5840905c7ff4cd37c54a0bbebddaeb2969c120cb.zip |
[PLT-6744] Add "Only visible to you" note for ephemeral messages (#6790)
Diffstat (limited to 'webapp/components/rhs_comment.jsx')
-rw-r--r-- | webapp/components/rhs_comment.jsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 6592c487d..3813fe5a0 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -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> |