diff options
author | George Goldberg <george@gberg.me> | 2017-01-17 14:24:55 +0000 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-01-17 09:24:55 -0500 |
commit | 140bdeb60f2e8012c34330625d447d2663c370ee (patch) | |
tree | 8581cfddee6eb32fed1ccfdfd02bb7f6c4051589 /api | |
parent | 28599d1df8b982662ae001c8137421c28b668fef (diff) | |
download | chat-140bdeb60f2e8012c34330625d447d2663c370ee.tar.gz chat-140bdeb60f2e8012c34330625d447d2663c370ee.tar.bz2 chat-140bdeb60f2e8012c34330625d447d2663c370ee.zip |
PLT-5279: Show username for slash cmd notification. (#5091)
Diffstat (limited to 'api')
-rw-r--r-- | api/command.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/api/command.go b/api/command.go index 8a1126bf3..376cb1075 100644 --- a/api/command.go +++ b/api/command.go @@ -233,8 +233,6 @@ func handleResponse(c *Context, w http.ResponseWriter, response *model.CommandRe post.AddProp("override_username", cmd.Username) } else if len(response.Username) != 0 { post.AddProp("override_username", response.Username) - } else { - post.AddProp("override_username", model.DEFAULT_WEBHOOK_USERNAME) } } |