diff options
author | Erik Johnston <erik@matrix.org> | 2017-02-01 17:33:16 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-02-01 17:33:16 +0000 |
commit | 7e919bdbd09bf200d2e27767450eacbfbf2f4c3f (patch) | |
tree | 5596d69bfd09bfd6ad60a907578bae76b3c222b0 /synapse/storage/stream.py | |
parent | Merge pull request #1871 from matrix-org/erikj/ratelimit_401 (diff) | |
download | synapse-7e919bdbd09bf200d2e27767450eacbfbf2f4c3f.tar.xz |
Include newly joined users in /keys/changes API
Diffstat (limited to 'synapse/storage/stream.py')
-rw-r--r-- | synapse/storage/stream.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py index 2dc24951c4..cdc1838895 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py @@ -244,6 +244,13 @@ class StreamStore(SQLBaseStore): defer.returnValue(results) + def get_rooms_that_changed(self, room_ids, from_key): + from_key = RoomStreamToken.parse_stream_token(from_key).stream + return set( + room_id for room_id in room_ids + if self._events_stream_cache.has_entity_changed(room_id, from_key) + ) + @defer.inlineCallbacks def get_room_events_stream_for_room(self, room_id, from_key, to_key, limit=0, order='DESC'): |