summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2018-06-06 12:02:22 -0400
committerCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-06-06 18:02:22 +0200
commit1d961b1632d7cac5574f48f447755fbeddbdfa4b (patch)
tree25932d54c81f6339ef8229a44fad128e376fa9fa /app
parent26f238af2a2ecba4e446a713f559054024bb3901 (diff)
downloadchat-1d961b1632d7cac5574f48f447755fbeddbdfa4b.tar.gz
chat-1d961b1632d7cac5574f48f447755fbeddbdfa4b.tar.bz2
chat-1d961b1632d7cac5574f48f447755fbeddbdfa4b.zip
Fix push notification styling backwards compatibility (#8913)
Diffstat (limited to 'app')
-rw-r--r--app/notification.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/notification.go b/app/notification.go
index 741dadd9a..a3c1857d5 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -722,6 +722,7 @@ func (a *App) sendPushNotification(post *model.Post, user *model.User, channel *
msg.Badge = int(badge.Data.(int64))
}
+ msg.Version = model.PUSH_MESSAGE_V2
msg.Type = model.PUSH_TYPE_MESSAGE
msg.TeamId = channel.TeamId
msg.ChannelId = channel.Id