diff options
Diffstat (limited to 'app/command.go')
-rw-r--r-- | app/command.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/command.go b/app/command.go index 1eaf304ad..d3e36b0e0 100644 --- a/app/command.go +++ b/app/command.go @@ -47,7 +47,7 @@ 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 { + } else if (response.ResponseType == "" || response.ResponseType == model.COMMAND_RESPONSE_TYPE_EPHEMERAL) && (response.Text != "" || response.Attachments != nil) { post.ParentId = "" a.SendEphemeralPost(post.UserId, post) } |