diff options
author | Erik Johnston <erikj@jki.re> | 2018-03-01 17:12:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-01 17:12:34 +0000 |
commit | 9e08a93a7bc1f7b8e0ab46663ae759490ddcbccf (patch) | |
tree | aa29b5ba7f771c42595ee3a5ed79761e86a8e7ac /synapse/handlers/read_marker.py | |
parent | Merge pull request #2926 from matrix-org/erikj/member_handler_move (diff) | |
parent | Fewer lies are better (diff) | |
download | synapse-9e08a93a7bc1f7b8e0ab46663ae759490ddcbccf.tar.xz |
Merge pull request #2927 from matrix-org/erikj/read_marker_caches
Improve caching for read_marker API
Diffstat (limited to 'synapse/handlers/read_marker.py')
-rw-r--r-- | synapse/handlers/read_marker.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/read_marker.py b/synapse/handlers/read_marker.py index b5b0303d54..5142ae153d 100644 --- a/synapse/handlers/read_marker.py +++ b/synapse/handlers/read_marker.py @@ -41,9 +41,9 @@ class ReadMarkerHandler(BaseHandler): """ with (yield self.read_marker_linearizer.queue((room_id, user_id))): - account_data = yield self.store.get_account_data_for_room(user_id, room_id) - - existing_read_marker = account_data.get("m.fully_read", None) + existing_read_marker = yield self.store.get_account_data_for_room_and_type( + user_id, room_id, "m.fully_read", + ) should_update = True |