From 12662d0c877b585c96d35b91fea4b6e99fcba749 Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Mon, 9 Jan 2017 15:25:02 +0100 Subject: 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 --- webapp/components/post_view/components/post_body_additional_content.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/components/post_view') 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(); } -- cgit v1.2.3-1-g7c22