summaryrefslogtreecommitdiffstats
path: root/api/command_msg.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-02 12:57:32 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-05-02 12:57:32 -0400
commitf8ed606a5ff4e1c4bc71514b5604de0cbaa09feb (patch)
tree906bdb6743d781e6e3ce3506e9f9bc9c76e91067 /api/command_msg.go
parent6f1489b7882db6d95a05e43294d0107435974eba (diff)
downloadchat-f8ed606a5ff4e1c4bc71514b5604de0cbaa09feb.tar.gz
chat-f8ed606a5ff4e1c4bc71514b5604de0cbaa09feb.tar.bz2
chat-f8ed606a5ff4e1c4bc71514b5604de0cbaa09feb.zip
Fixing edit direct channel header (#2842)
Diffstat (limited to 'api/command_msg.go')
-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 517999695..6c517b68e 100644
--- a/api/command_msg.go
+++ b/api/command_msg.go
@@ -64,7 +64,7 @@ func (me *msgProvider) DoCommand(c *Context, channelId string, message string) *
if channel := <-Srv.Store.Channel().GetByName(c.TeamId, channelName); channel.Err != nil {
if channel.Err.Id == "store.sql_channel.get_by_name.missing.app_error" {
- if directChannel, err := CreateDirectChannel(c, userProfile.Id); err != nil {
+ if directChannel, err := CreateDirectChannel(c.Session.UserId, userProfile.Id); err != nil {
c.Err = err
return &model.CommandResponse{Text: c.T("api.command_msg.dm_fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
} else {