PLT-4598 add team id to push notification (#4623)

This commit is contained in:
Corey Hulen
2016-11-21 17:55:43 -08:00
committed by enahum
parent d57ab7a81e
commit bc0c52fb77
2 changed files with 2 additions and 0 deletions

View File

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

View File

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