mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 04:44:52 -04:00
Add store-and-forward direct-to-device messaging
This commit is contained in:
parent
3e86dcf1c0
commit
e993925279
9 changed files with 288 additions and 4 deletions
|
@ -43,6 +43,7 @@ class EventSources(object):
|
|||
@defer.inlineCallbacks
|
||||
def get_current_token(self, direction='f'):
|
||||
push_rules_key, _ = self.store.get_push_rules_stream_token()
|
||||
to_device_key = self.store.get_to_device_stream_token()
|
||||
|
||||
token = StreamToken(
|
||||
room_key=(
|
||||
|
@ -61,5 +62,6 @@ class EventSources(object):
|
|||
yield self.sources["account_data"].get_current_key()
|
||||
),
|
||||
push_rules_key=push_rules_key,
|
||||
to_device_key=to_device_key,
|
||||
)
|
||||
defer.returnValue(token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue