diff options
Diffstat (limited to 'api/command_away.go')
-rw-r--r-- | api/command_away.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/command_away.go b/api/command_away.go index 6d6540320..6a488c081 100644 --- a/api/command_away.go +++ b/api/command_away.go @@ -4,6 +4,7 @@ package api import ( + "github.com/mattermost/platform/app" "github.com/mattermost/platform/model" ) @@ -36,7 +37,7 @@ func (me *AwayProvider) DoCommand(c *Context, args *model.CommandArgs, message s if len(message) > 0 { rmsg = message + " " + rmsg } - SetStatusAwayIfNeeded(c.Session.UserId, true) + app.SetStatusAwayIfNeeded(c.Session.UserId, true) return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: rmsg} } |