From 871b7eaa66b84fc260ef5406d63671e1869c993f Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 28 Aug 2017 11:54:23 -0300 Subject: Include post_id and root_id to handle actions from the PN (#7286) --- model/push_notification.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'model') 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"` -- cgit v1.2.3-1-g7c22