summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-11-21 17:55:43 -0800
committerenahum <nahumhbl@gmail.com>2016-11-21 22:55:43 -0300
commitbc0c52fb779fe543b9224ae3bc6c4f6b91a4a49e (patch)
tree145a49be03ad2389fd650a076573f6b4748866d4 /api/post.go
parentd57ab7a81e295c0f1a731f1f4f5fa04d5cba398b (diff)
downloadchat-bc0c52fb779fe543b9224ae3bc6c4f6b91a4a49e.tar.gz
chat-bc0c52fb779fe543b9224ae3bc6c4f6b91a4a49e.tar.bz2
chat-bc0c52fb779fe543b9224ae3bc6c4f6b91a4a49e.zip
PLT-4598 add team id to push notification (#4623)
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go1
1 files changed, 1 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