mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
Bugfix: FCM push subscription builder fix (#930)
This commit is contained in:
@@ -12,7 +12,7 @@ class NotificationSubscriptionBuilder
|
|||||||
|
|
||||||
def identifier
|
def identifier
|
||||||
@identifier ||= params[:subscription_attributes][:endpoint] if params[:subscription_type] == 'browser_push'
|
@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
|
@identifier
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user