diff options
author | David Baker <dave@matrix.org> | 2015-01-23 17:07:06 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-23 17:07:06 +0000 |
commit | f21f9fa3c51db49212c42adfe6972025e1d27a15 (patch) | |
tree | b8431c25942c82b91fd279b3cf7c507ce2d60deb /synapse/push/httppusher.py | |
parent | more pep8 suggestions (diff) | |
download | synapse-f21f9fa3c51db49212c42adfe6972025e1d27a15.tar.xz |
Use push settings!
Diffstat (limited to 'synapse/push/httppusher.py')
-rw-r--r-- | synapse/push/httppusher.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py index 46433ad4a9..25db1dded5 100644 --- a/synapse/push/httppusher.py +++ b/synapse/push/httppusher.py @@ -52,7 +52,7 @@ class HttpPusher(Pusher): del self.data_minus_url['url'] @defer.inlineCallbacks - def _build_notification_dict(self, event): + def _build_notification_dict(self, event, tweaks): # we probably do not want to push for every presence update # (we may want to be able to set up notifications when specific # people sign in, but we'd want to only deliver the pertinent ones) @@ -83,7 +83,8 @@ class HttpPusher(Pusher): 'app_id': self.app_id, 'pushkey': self.pushkey, 'pushkey_ts': long(self.pushkey_ts / 1000), - 'data': self.data_minus_url + 'data': self.data_minus_url, + 'tweaks': tweaks } ] } @@ -97,8 +98,8 @@ class HttpPusher(Pusher): defer.returnValue(d) @defer.inlineCallbacks - def dispatch_push(self, event): - notification_dict = yield self._build_notification_dict(event) + def dispatch_push(self, event, tweaks): + notification_dict = yield self._build_notification_dict(event, tweaks) if not notification_dict: defer.returnValue([]) try: |