mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-18 12:44:35 -04:00
add instance_handles to pushers so we have a way to refer to them even if the push token changes.
This commit is contained in:
parent
2d2953cf5f
commit
afb714f7be
7 changed files with 39 additions and 27 deletions
|
@ -30,13 +30,14 @@ class Pusher(object):
|
|||
MAX_BACKOFF = 60 * 60 * 1000
|
||||
GIVE_UP_AFTER = 24 * 60 * 60 * 1000
|
||||
|
||||
def __init__(self, _hs, user_name, app_id,
|
||||
def __init__(self, _hs, instance_handle, user_name, app_id,
|
||||
app_display_name, device_display_name, pushkey, pushkey_ts,
|
||||
data, last_token, last_success, failing_since):
|
||||
self.hs = _hs
|
||||
self.evStreamHandler = self.hs.get_handlers().event_stream_handler
|
||||
self.store = self.hs.get_datastore()
|
||||
self.clock = self.hs.get_clock()
|
||||
self.instance_handle = instance_handle,
|
||||
self.user_name = user_name
|
||||
self.app_id = app_id
|
||||
self.app_display_name = app_display_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue