diff options
author | Zeger-Jan van de Weg <ZJvandeWeg@users.noreply.github.com> | 2017-01-09 15:25:02 +0100 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-01-09 09:25:02 -0500 |
commit | 12662d0c877b585c96d35b91fea4b6e99fcba749 (patch) | |
tree | c8ed79a11d3e8191434afc955f5c598538d0f985 /webapp/components | |
parent | 10200811308c5b857572ed2f66cb510b797a301d (diff) | |
download | chat-12662d0c877b585c96d35b91fea4b6e99fcba749.tar.gz chat-12662d0c877b585c96d35b91fea4b6e99fcba749.tar.bz2 chat-12662d0c877b585c96d35b91fea4b6e99fcba749.zip |
Slack format for Slash command messages (#4999)
* Slash commands accept Slack format
Until this commit the slash commands only accepted 'text' properties.
For better styling however, Slack formatting support was added.
However, ephemeral messages are not supported, and only text will be
displayed.
* Allow emphemeral Slack messages
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/post_view/components/post_body_additional_content.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post_body_additional_content.jsx b/webapp/components/post_view/components/post_body_additional_content.jsx index 5cdbef050..a65b608d7 100644 --- a/webapp/components/post_view/components/post_body_additional_content.jsx +++ b/webapp/components/post_view/components/post_body_additional_content.jsx @@ -136,7 +136,7 @@ export default class PostBodyAdditionalContent extends React.Component { } generateStaticEmbed() { - if (this.props.post.type === Constants.POST_TYPE_ATTACHMENT) { + if (this.props.post.props && this.props.post.props.attachments) { return this.getSlackAttachment(); } |