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
Этот коммит содержится в:
Zeger-Jan van de Weg
2017-01-09 15:25:02 +01:00
коммит произвёл Harrison Healey
родитель 1020081130
Коммит 12662d0c87
3 изменённых файлов: 69 добавлений и 55 удалений

Просмотреть файл

@@ -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();
}