summaryrefslogtreecommitdiffstats
path: root/app/command_offline.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-07-31 08:26:54 -0700
committerHarrison Healey <harrisonmhealey@gmail.com>2017-07-31 11:26:54 -0400
commit094c2f7308c657956e1b60c52747eb90647eac97 (patch)
tree16d63d6644d26b3c79957cf313b4bc592a2bdf33 /app/command_offline.go
parent09b49c26ddfdb20ced61e7dfd4192e750ce40449 (diff)
downloadchat-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.go6
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")}
}