Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/rpush/client/active_model/fcm/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ def as_json(options = nil) # rubocop:disable Metrics/PerceivedComplexity
end

def android_config
json = {
'notification' => android_notification,
}
json = {}
json['notification'] = android_notification if notification
json['collapse_key'] = collapse_key if collapse_key
json['priority'] = priority_str if priority
json['ttl'] = "#{expiry}s" if expiry
Expand Down