mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
allow ephemeral command responses without text (#7478)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user