summaryrefslogtreecommitdiffstats
path: root/model/push_notification.go
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-06-07 15:52:07 +0200
committerGitHub <noreply@github.com>2018-06-07 15:52:07 +0200
commit3d262bfc8dc234b6d26bbdda34ffcce180cbb5a5 (patch)
tree3708d24591b9d017eede75454542b189d6a2608f /model/push_notification.go
parent0ba0af889e3a71d6d5aeb4dd10279d5027d3d8cd (diff)
downloadchat-3d262bfc8dc234b6d26bbdda34ffcce180cbb5a5.tar.gz
chat-3d262bfc8dc234b6d26bbdda34ffcce180cbb5a5.tar.bz2
chat-3d262bfc8dc234b6d26bbdda34ffcce180cbb5a5.zip
Relese5.0 merge master 20180607 (#8927)
* Add missing diagnostics (#8911) * Update diagnostics.go * Update diagnostics.go * Fix push notification styling backwards compatibility (#8913)
Diffstat (limited to 'model/push_notification.go')
-rw-r--r--model/push_notification.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/model/push_notification.go b/model/push_notification.go
index 0d7ba77ac..5268a98f8 100644
--- a/model/push_notification.go
+++ b/model/push_notification.go
@@ -17,6 +17,7 @@ const (
PUSH_TYPE_MESSAGE = "message"
PUSH_TYPE_CLEAR = "clear"
+ PUSH_MESSAGE_V2 = "v2"
// The category is set to handle a set of interactive Actions
// with the push notifications
@@ -44,6 +45,7 @@ type PushNotification struct {
OverrideUsername string `json:"override_username"`
OverrideIconUrl string `json:"override_icon_url"`
FromWebhook string `json:"from_webhook"`
+ Version string `json:"version"`
}
func (me *PushNotification) ToJson() string {