diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-01-29 08:38:24 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-01-29 08:38:24 -0500 |
commit | 66af7a8337897567133c31d7ae71d0538524fca0 (patch) | |
tree | 8db7b968699a683d7531155a53830de4c71ba5e2 /api | |
parent | e2238fcd51347c1f93ba8a13fc34ee7d720e133a (diff) | |
parent | 6cba0353c936fbb2cac8b32b893def75c28ae81e (diff) | |
download | chat-66af7a8337897567133c31d7ae71d0538524fca0.tar.gz chat-66af7a8337897567133c31d7ae71d0538524fca0.tar.bz2 chat-66af7a8337897567133c31d7ae71d0538524fca0.zip |
Merge pull request #2013 from mattermost/plt-1749
PLT-1749 Return channel type in new post websocket events
Diffstat (limited to 'api')
-rw-r--r-- | api/post.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go index d3807653d..e8345b5e5 100644 --- a/api/post.go +++ b/api/post.go @@ -698,6 +698,7 @@ func sendNotificationsAndForget(c *Context, post *model.Post, team *model.Team, message := model.NewMessage(c.Session.TeamId, post.ChannelId, post.UserId, model.ACTION_POSTED) message.Add("post", post.ToJson()) + message.Add("channel_type", channel.Type) if len(post.Filenames) != 0 { message.Add("otherFile", "true") |