Made message command for all users (#3122)

This commit is contained in:
David Lu
2016-05-26 07:03:06 -07:00
committed by Harrison Healey
parent 8a7e1b6dff
commit 6bd9996daf

View File

@@ -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 {