Removed system message on /msg success (#3579)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
4c8ba1f5a2
Коммит
2e7e0d09b8
@@ -249,7 +249,7 @@ func handleResponse(c *Context, w http.ResponseWriter, response *model.CommandRe
|
|||||||
if _, err := CreatePost(c, post, true); err != nil {
|
if _, err := CreatePost(c, post, true); err != nil {
|
||||||
c.Err = model.NewLocAppError("command", "api.command.execute_command.save.app_error", nil, "")
|
c.Err = model.NewLocAppError("command", "api.command.execute_command.save.app_error", nil, "")
|
||||||
}
|
}
|
||||||
} else if response.ResponseType == model.COMMAND_RESPONSE_TYPE_EPHEMERAL {
|
} else if response.ResponseType == model.COMMAND_RESPONSE_TYPE_EPHEMERAL && response.Text != "" {
|
||||||
post.Message = response.Text
|
post.Message = response.Text
|
||||||
post.CreateAt = model.GetMillis()
|
post.CreateAt = model.GetMillis()
|
||||||
SendEphemeralPost(
|
SendEphemeralPost(
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ func (me *msgProvider) DoCommand(c *Context, channelId string, message string) *
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return &model.CommandResponse{GotoLocation: c.GetTeamURL() + "/channels/" + channelName, Text: c.T("api.command_msg.success"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
return &model.CommandResponse{GotoLocation: c.GetTeamURL() + "/channels/" + channelName, Text: "", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user