From 275731578e72d2c6e12cfb2fc315d3446474faec Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 16 Jul 2018 15:49:26 -0400 Subject: MM-10254 Add plugin APIs for getting/updating user statuses (#9101) * Add plugin APIs for getting/updating user statuses * Add and update tests * Updates per feedback --- app/command_dnd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/command_dnd.go') diff --git a/app/command_dnd.go b/app/command_dnd.go index cd3764fdf..96135194d 100644 --- a/app/command_dnd.go +++ b/app/command_dnd.go @@ -38,7 +38,7 @@ func (me *DndProvider) DoCommand(a *App, args *model.CommandArgs, message string return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_dnd.error")} } else { if status.Status == "dnd" { - a.SetStatusOnline(args.UserId, args.Session.Id, true) + a.SetStatusOnline(args.UserId, true) return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: args.T("api.command_dnd.disabled")} } } -- cgit v1.2.3-1-g7c22