summaryrefslogtreecommitdiffstats
path: root/app/command.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-09-19 17:13:59 -0500
committerGitHub <noreply@github.com>2017-09-19 17:13:59 -0500
commit7e4ff6adcccc4cc5a8fb8cfa853417ec52bf78f4 (patch)
treef173504388ac6b30438ccc696bafb8dba5beaf09 /app/command.go
parente7e10d36a9bfd2c4b1ef98aabe013f97c01baa9e (diff)
downloadchat-7e4ff6adcccc4cc5a8fb8cfa853417ec52bf78f4.tar.gz
chat-7e4ff6adcccc4cc5a8fb8cfa853417ec52bf78f4.tar.bz2
chat-7e4ff6adcccc4cc5a8fb8cfa853417ec52bf78f4.zip
allow ephemeral command responses without text (#7478)
Diffstat (limited to 'app/command.go')
-rw-r--r--app/command.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/command.go b/app/command.go
index f5b8f1fbb..f8885219a 100644
--- a/app/command.go
+++ b/app/command.go
@@ -48,10 +48,6 @@ func (a *App) CreateCommandPost(post *model.Post, teamId string, response *model
if response.ResponseType == model.COMMAND_RESPONSE_TYPE_IN_CHANNEL {
return a.CreatePostMissingChannel(post, true)
} else if response.ResponseType == "" || response.ResponseType == model.COMMAND_RESPONSE_TYPE_EPHEMERAL {
- if response.Text == "" {
- return post, nil
- }
-
post.ParentId = ""
SendEphemeralPost(post.UserId, post)
}