Include newly joined users in /keys/changes API

This commit is contained in:
Erik Johnston 2017-02-01 17:33:16 +00:00
parent 96355d2f2f
commit 7e919bdbd0
3 changed files with 43 additions and 5 deletions

View file

@ -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'):