Return channel type in new post websocket events

Этот коммит содержится в:
JoramWilander
2016-01-28 12:28:02 -05:00
родитель db37897538
Коммит 6cba0353c9
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@@ -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")