chore: Strip unnecessary data from push payload (#2924)

This commit is contained in:
Sojan Jose
2021-09-09 13:59:42 +05:30
committed by GitHub
parent 2821777e93
commit 9c4ce9af35
2 changed files with 13 additions and 2 deletions

View File

@@ -94,9 +94,10 @@ class Notification::PushNotificationService
{
notification: {
title: notification.notification_type.titleize,
body: notification.push_message_title
body: notification.push_message_title,
sound: 'default'
},
data: { notification: notification.push_event_data.to_json },
data: { notification: notification.fcm_push_data.to_json },
collapse_key: "chatwoot_#{notification.primary_actor_type.downcase}_#{notification.primary_actor_id}"
}
end