allow ephemeral command responses without text (#7478)

This commit is contained in:
Chris
2017-09-19 17:13:59 -05:00
committed by GitHub
parent e7e10d36a9
commit 7e4ff6adcc

View File

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