diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/command_away.go | 6 | ||||
-rw-r--r-- | app/command_offline.go | 6 | ||||
-rw-r--r-- | app/command_online.go | 6 |
3 files changed, 3 insertions, 15 deletions
diff --git a/app/command_away.go b/app/command_away.go index f4150dfeb..77f5cc7f3 100644 --- a/app/command_away.go +++ b/app/command_away.go @@ -33,11 +33,7 @@ func (me *AwayProvider) GetCommand(T goi18n.TranslateFunc) *model.Command { } func (me *AwayProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse { - rmsg := args.T("api.command_away.success") - if len(message) > 0 { - rmsg = message + " " + rmsg - } SetStatusAwayIfNeeded(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_away.success")} } 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")} } diff --git a/app/command_online.go b/app/command_online.go index b0becaf14..c98f1649b 100644 --- a/app/command_online.go +++ b/app/command_online.go @@ -33,11 +33,7 @@ func (me *OnlineProvider) GetCommand(T goi18n.TranslateFunc) *model.Command { } func (me *OnlineProvider) DoCommand(args *model.CommandArgs, message string) *model.CommandResponse { - rmsg := args.T("api.command_online.success") - if len(message) > 0 { - rmsg = message + " " + rmsg - } SetStatusOnline(args.UserId, args.Session.Id, 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_online.success")} } |