From bc0c52fb779fe543b9224ae3bc6c4f6b91a4a49e Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Mon, 21 Nov 2016 17:55:43 -0800 Subject: [PATCH] PLT-4598 add team id to push notification (#4623) --- api/post.go | 1 + model/push_notification.go | 1 + 2 files changed, 2 insertions(+) diff --git a/api/post.go b/api/post.go index 814d4e671d..c982b65ca4 100644 --- a/api/post.go +++ b/api/post.go @@ -931,6 +931,7 @@ func sendPushNotification(post *model.Post, user *model.User, channel *model.Cha msg.Badge = int(badge.Data.(int64)) } msg.Type = model.PUSH_TYPE_MESSAGE + msg.TeamId = channel.TeamId msg.ChannelId = channel.Id msg.ChannelName = channel.Name diff --git a/model/push_notification.go b/model/push_notification.go index d4c380291f..3c010fb757 100644 --- a/model/push_notification.go +++ b/model/push_notification.go @@ -30,6 +30,7 @@ type PushNotification struct { Message string `json:"message"` Badge int `json:"badge"` ContentAvailable int `json:"cont_ava"` + TeamId string `json:"team_id"` ChannelId string `json:"channel_id"` ChannelName string `json:"channel_name"` Type string `json:"type"`