diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-25 14:27:27 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-25 14:27:27 +0000 |
commit | 2367c5568c01bc65aacc955b76ba707918b37f1e (patch) | |
tree | 0f07606420d5f64ba3e186ce69876fc6301082a3 /synapse/streams | |
parent | Merge branch 'erikj/current_state_fix' into develop (diff) | |
download | synapse-2367c5568c01bc65aacc955b76ba707918b37f1e.tar.xz |
Add basic implementation of local device list changes
Diffstat (limited to 'synapse/streams')
-rw-r--r-- | synapse/streams/events.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/streams/events.py b/synapse/streams/events.py index 4d44c3d4ca..91a59b0bae 100644 --- a/synapse/streams/events.py +++ b/synapse/streams/events.py @@ -44,6 +44,7 @@ class EventSources(object): def get_current_token(self): push_rules_key, _ = self.store.get_push_rules_stream_token() to_device_key = self.store.get_to_device_stream_token() + device_list_key = self.store.get_device_stream_token() token = StreamToken( room_key=( @@ -63,6 +64,7 @@ class EventSources(object): ), push_rules_key=push_rules_key, to_device_key=to_device_key, + device_list_key=device_list_key, ) defer.returnValue(token) @@ -70,6 +72,7 @@ class EventSources(object): def get_current_token_for_room(self, room_id): push_rules_key, _ = self.store.get_push_rules_stream_token() to_device_key = self.store.get_to_device_stream_token() + device_list_key = self.store.get_device_stream_token() token = StreamToken( room_key=( @@ -89,5 +92,6 @@ class EventSources(object): ), push_rules_key=push_rules_key, to_device_key=to_device_key, + device_list_key=device_list_key, ) defer.returnValue(token) |