diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2018-06-06 12:02:22 -0400 |
---|---|---|
committer | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2018-06-06 18:02:22 +0200 |
commit | 1d961b1632d7cac5574f48f447755fbeddbdfa4b (patch) | |
tree | 25932d54c81f6339ef8229a44fad128e376fa9fa /model | |
parent | 26f238af2a2ecba4e446a713f559054024bb3901 (diff) | |
download | chat-1d961b1632d7cac5574f48f447755fbeddbdfa4b.tar.gz chat-1d961b1632d7cac5574f48f447755fbeddbdfa4b.tar.bz2 chat-1d961b1632d7cac5574f48f447755fbeddbdfa4b.zip |
Fix push notification styling backwards compatibility (#8913)
Diffstat (limited to 'model')
-rw-r--r-- | model/push_notification.go | 2 |
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 { |