diff options
author | Chris <ccbrown112@gmail.com> | 2017-07-31 08:26:54 -0700 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-07-31 11:26:54 -0400 |
commit | 094c2f7308c657956e1b60c52747eb90647eac97 (patch) | |
tree | 16d63d6644d26b3c79957cf313b4bc592a2bdf33 /app/command_offline.go | |
parent | 09b49c26ddfdb20ced61e7dfd4192e750ce40449 (diff) | |
download | chat-094c2f7308c657956e1b60c52747eb90647eac97.tar.gz chat-094c2f7308c657956e1b60c52747eb90647eac97.tar.bz2 chat-094c2f7308c657956e1b60c52747eb90647eac97.zip |
fix away/offline/online commands repeating user message (#7060)
Diffstat (limited to 'app/command_offline.go')
-rw-r--r-- | app/command_offline.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/command_offline.go b/app/command_offline.go index 5316ccc5f..a8c4352ad 100644 --- a/app/command_offline.go +++ b/app/command_offline.go @@ -33,11 +33,7 @@ func (me *OfflineProvider) GetCommand(T goi18n.TranslateFunc) *model.Command { } func (me *OfflineProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse { - rmsg := args.T("api.command_offline.success") - if len(message) > 0 { - rmsg = message + " " + rmsg - } SetStatusOffline(args.UserId, true) - return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: rmsg} + return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_offline.success")} } |