diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-08-25 17:35:37 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-08-25 17:35:37 +0100 |
commit | e993925279b9e4cc00d52e7331cc5fa3cd4ae59f (patch) | |
tree | 87947a265ae020b0ee0e0d0d1b4fc8fa5fde3b94 /synapse/streams/events.py | |
parent | Merge pull request #1040 from matrix-org/erikj/pagination (diff) | |
download | synapse-e993925279b9e4cc00d52e7331cc5fa3cd4ae59f.tar.xz |
Add store-and-forward direct-to-device messaging
Diffstat (limited to 'synapse/streams/events.py')
-rw-r--r-- | synapse/streams/events.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/streams/events.py b/synapse/streams/events.py index d4c0bb6732..6bf21d6f5e 100644 --- a/synapse/streams/events.py +++ b/synapse/streams/events.py @@ -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) |