aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-10-01 10:01:56 +0300
committerGravatar Vitaly Takmazov2024-10-01 10:02:13 +0300
commit63bd3dc532d20143b70adef1fff6c929fb524304 (patch)
tree2c999892679be61e9a23d8db398e31ac250cddff /vnext
parent566bb18d51ba98a89d97bf6ef7dd00c81adc9e0a (diff)
vnext: fix fcm parametersHEADmaster
Diffstat (limited to 'vnext')
-rw-r--r--vnext/server/sender.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/vnext/server/sender.js b/vnext/server/sender.js
index fa8c4853..257c79f7 100644
--- a/vnext/server/sender.js
+++ b/vnext/server/sender.js
@@ -143,15 +143,15 @@ export function buildNotification(user, msg) {
template.body = body
//template.badge = user.unreadCount || 0
template.mutableContent = 1
- template.color = '#3c77aa'
- template.icon = 'ic_notification'
- template.clickAction = 'com.juick.NEW_EVENT_ACTION'
const tag = msg.mid == 0 ? msg.user.uname : msg.mid
template.tag = `${tag}`
template.fcm_notification = {
title: title,
body: body,
- channel_id: 'default'
+ channel_id: 'default',
+ click_action: 'com.juick.NEW_EVENT_ACTION',
+ icon: 'ic_notification',
+ color: '#3c77aa'
}
}
return template