summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-06-06 10:46:09 -0300
committerHarrison Healey <harrisonmhealey@gmail.com>2016-06-06 09:46:09 -0400
commit6cee1f87f2361f3c4b431190ae2df2b12a2157ef (patch)
tree8ca1e5798baf0aa6a046b37b59d7b50751342c60 /api
parent6ab893dcba2dc45f9dd34546b1a1b5d7604c1a7f (diff)
downloadchat-6cee1f87f2361f3c4b431190ae2df2b12a2157ef.tar.gz
chat-6cee1f87f2361f3c4b431190ae2df2b12a2157ef.tar.bz2
chat-6cee1f87f2361f3c4b431190ae2df2b12a2157ef.zip
PLT-2990 Clicking on a desktop notification from another team opens the team (#3253)
Diffstat (limited to 'api')
-rw-r--r--api/post.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go
index 937628e0a..3acbaff40 100644
--- a/api/post.go
+++ b/api/post.go
@@ -473,6 +473,7 @@ func sendNotifications(c *Context, post *model.Post, team *model.Team, channel *
message := model.NewMessage(c.TeamId, post.ChannelId, post.UserId, model.ACTION_POSTED)
message.Add("post", post.ToJson())
message.Add("channel_type", channel.Type)
+ message.Add("team_id", team.Id)
if len(post.Filenames) != 0 {
message.Add("otherFile", "true")