mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-30 18:47:51 +00:00
Bugfix: FCM push subscription builder fix (#930)
This commit is contained in:
@@ -12,7 +12,7 @@ class NotificationSubscriptionBuilder
|
||||
|
||||
def identifier
|
||||
@identifier ||= params[:subscription_attributes][:endpoint] if params[:subscription_type] == 'browser_push'
|
||||
@identifier ||= params[:device_id] if params[:subscription_type] == 'fcm'
|
||||
@identifier ||= params[:subscription_attributes][:device_id] if params[:subscription_type] == 'fcm'
|
||||
@identifier
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user