diff options
author | Erik Johnston <erik@matrix.org> | 2017-03-13 09:50:10 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-03-13 09:50:10 +0000 |
commit | 79926e016e98d4074aac4803d4d262dfd9c570c4 (patch) | |
tree | ce55258ff17025142691b9f978017c91669eba34 /synapse/storage/stream.py | |
parent | Get current state by using current_state_events table (diff) | |
download | synapse-79926e016e98d4074aac4803d4d262dfd9c570c4.tar.xz |
Assume rooms likely haven't changed
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/stream.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py index 200d124632..dddd5fc0e7 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py @@ -829,3 +829,6 @@ class StreamStore(SQLBaseStore): updatevalues={"stream_id": stream_id}, desc="update_federation_out_pos", ) + + def has_room_changed_since(self, room_id, stream_id): + return self._events_stream_cache.has_entity_changed(room_id, stream_id) |