summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/post.go1
-rw-r--r--model/push_notification.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go
index 814d4e671..c982b65ca 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 d4c380291..3c010fb75 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"`