Skip to content
Snippets Groups Projects
Commit 122cd52c authored by Luke Barnard's avatar Luke Barnard
Browse files

Remove comment, simplify null-guard

parent 77fb2b72
No related branches found
No related tags found
Loading
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment