From 6cba0353c936fbb2cac8b32b893def75c28ae81e Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 28 Jan 2016 12:28:02 -0500 Subject: Return channel type in new post websocket events --- api/post.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api/post.go') 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") -- cgit v1.2.3-1-g7c22