Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
bug: remove GCM collapse key
Browse files Browse the repository at this point in the history
Closes #1149
  • Loading branch information
jrconlin committed Mar 8, 2018
1 parent c75b96d commit 65f1003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autopush/router/gcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, conf, router_conf, metrics):
self.metrics = metrics
self.min_ttl = router_conf.get("ttl", 60)
self.dryRun = router_conf.get("dryrun", False)
self.collapseKey = router_conf.get("collapseKey", "simplepush")
self.collapseKey = router_conf.get("collapseKey")
self.gcm = {}
self.senderIDs = {}
# Flatten the SenderID list from human readable and init gcmclient
Expand Down
3 changes: 2 additions & 1 deletion autopush/router/gcmclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ def __init__(self,
self.registration_ids = registration_ids
self.payload = {
'registration_ids': self.registration_ids,
'collapse_key': collapse_key,
'time_to_live': int(time_to_live),
'delay_while_idle': False,
'dry_run': bool(dry_run),
}
if collapse_key:
self.payload["collapse_key"] = collapse_key
if data:
self.payload['data'] = data

Expand Down

0 comments on commit 65f1003

Please sign in to comment.