summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-05-26 07:03:06 -0700
committerHarrison Healey <harrisonmhealey@gmail.com>2016-05-26 10:03:06 -0400
commit6bd9996dafcd1bed80b8e952126c0cae39c36fb3 (patch)
tree59bfe998e915f7bbb0640301f07131ce5803a0d9 /api
parent8a7e1b6dff9e0a7a01ed06870c5a8520500d20af (diff)
downloadchat-6bd9996dafcd1bed80b8e952126c0cae39c36fb3.tar.gz
chat-6bd9996dafcd1bed80b8e952126c0cae39c36fb3.tar.bz2
chat-6bd9996dafcd1bed80b8e952126c0cae39c36fb3.zip
Made message command for all users (#3122)
Diffstat (limited to 'api')
-rw-r--r--api/command_msg.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/command_msg.go b/api/command_msg.go
index 6c517b68e..7fd281077 100644
--- a/api/command_msg.go
+++ b/api/command_msg.go
@@ -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 {