diff options
author | David Lu <david.lu@hotmail.com> | 2016-07-14 08:17:24 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-07-14 08:17:24 -0400 |
commit | 2e7e0d09b8ba5c1893c0ffb647152c84ccfc2377 (patch) | |
tree | 3d381f5bff85779e81e3fc343d5f975fba779527 /api | |
parent | 4c8ba1f5a2e6da48a75dc5c563e8cf486e8b66c8 (diff) | |
download | chat-2e7e0d09b8ba5c1893c0ffb647152c84ccfc2377.tar.gz chat-2e7e0d09b8ba5c1893c0ffb647152c84ccfc2377.tar.bz2 chat-2e7e0d09b8ba5c1893c0ffb647152c84ccfc2377.zip |
Removed system message on /msg success (#3579)
Diffstat (limited to 'api')
-rw-r--r-- | api/command.go | 2 | ||||
-rw-r--r-- | api/command_msg.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/command.go b/api/command.go index 857ae2e9a..b4c9bb616 100644 --- a/api/command.go +++ b/api/command.go @@ -249,7 +249,7 @@ func handleResponse(c *Context, w http.ResponseWriter, response *model.CommandRe if _, err := CreatePost(c, post, true); err != 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.CreateAt = model.GetMillis() SendEphemeralPost( diff --git a/api/command_msg.go b/api/command_msg.go index 7fd281077..d32a7ca5e 100644 --- a/api/command_msg.go +++ b/api/command_msg.go @@ -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} } } } |