summaryrefslogtreecommitdiffstats
path: root/model/push_notification.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2017-08-28 11:54:23 -0300
committerGitHub <noreply@github.com>2017-08-28 11:54:23 -0300
commit871b7eaa66b84fc260ef5406d63671e1869c993f (patch)
tree9046bd3262f5e341d4b1bfd79ea7fcc31f4651c0 /model/push_notification.go
parent1709b94227ed33e789f1be00d26ebbb972ce86b7 (diff)
downloadchat-871b7eaa66b84fc260ef5406d63671e1869c993f.tar.gz
chat-871b7eaa66b84fc260ef5406d63671e1869c993f.tar.bz2
chat-871b7eaa66b84fc260ef5406d63671e1869c993f.zip
Include post_id and root_id to handle actions from the PN (#7286)
Diffstat (limited to 'model/push_notification.go')
-rw-r--r--model/push_notification.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/model/push_notification.go b/model/push_notification.go
index 654d1d9a5..69719e74c 100644
--- a/model/push_notification.go
+++ b/model/push_notification.go
@@ -18,7 +18,9 @@ const (
PUSH_TYPE_MESSAGE = "message"
PUSH_TYPE_CLEAR = "clear"
- CATEGORY_DM = "DIRECT_MESSAGE"
+ // The category is set to handle a set of interactive Actions
+ // with the push notifications
+ CATEGORY_CAN_REPLY = "CAN_REPLY"
MHPNS = "https://push.mattermost.com"
)
@@ -34,6 +36,8 @@ type PushNotification struct {
ContentAvailable int `json:"cont_ava"`
TeamId string `json:"team_id"`
ChannelId string `json:"channel_id"`
+ PostId string `json:"post_id"`
+ RootId string `json:"root_id"`
ChannelName string `json:"channel_name"`
Type string `json:"type"`
SenderId string `json:"sender_id"`