summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorLuke Barnard <lukeb@openmarket.com>2017-04-12 10:48:32 +0100
committerLuke Barnard <lukeb@openmarket.com>2017-04-12 10:48:32 +0100
commit122cd52ce451a2c182d23bb1a1a3a33ccaf307fc (patch)
tree4baba6cfbc6a79349f2a38adab5e1250260eb6ee /synapse
parentHandle no previous RM (diff)
downloadsynapse-122cd52ce451a2c182d23bb1a1a3a33ccaf307fc.tar.xz
Remove comment, simplify null-guard
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/read_marker.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/handlers/read_marker.py b/synapse/handlers/read_marker.py

index 43489b88bf..7f10dd8b45 100644 --- a/synapse/handlers/read_marker.py +++ b/synapse/handlers/read_marker.py
@@ -40,13 +40,10 @@ class ReadMarkerHandler(BaseHandler): the read marker has changed. """ - # Get ordering for existing read marker 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 = None - if "m.read_marker" in account_data: - existing_read_marker = account_data["m.read_marker"] + existing_read_marker = account_data.get("m.read_marker", None) should_update = True