[PLT-7787] remove an extra ephemeral message posted for slash commands (#7572)
Этот коммит содержится в:
коммит произвёл
Chris
родитель
31eda663b4
Коммит
35d56821ff
@@ -47,7 +47,7 @@ func (a *App) CreateCommandPost(post *model.Post, teamId string, response *model
|
|||||||
|
|
||||||
if response.ResponseType == model.COMMAND_RESPONSE_TYPE_IN_CHANNEL {
|
if response.ResponseType == model.COMMAND_RESPONSE_TYPE_IN_CHANNEL {
|
||||||
return a.CreatePostMissingChannel(post, true)
|
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 = ""
|
post.ParentId = ""
|
||||||
a.SendEphemeralPost(post.UserId, post)
|
a.SendEphemeralPost(post.UserId, post)
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user