Skip to content

Commit

Permalink
Made message command for all users (#3122)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLu1997 authored and hmhealey committed May 26, 2016
1 parent 8a7e1b6 commit 6bd9996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/command_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (me *msgProvider) DoCommand(c *Context, channelId string, message string) *
targetUser = strings.SplitN(message, " ", 2)[0]
targetUser = strings.TrimPrefix(targetUser, "@")

if profileList := <-Srv.Store.User().GetProfiles(c.TeamId); profileList.Err != nil {
if profileList := <-Srv.Store.User().GetAllProfiles(); profileList.Err != nil {
c.Err = profileList.Err
return &model.CommandResponse{Text: c.T("api.command_msg.list.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
} else {
Expand Down

0 comments on commit 6bd9996

Please sign in to comment.