Handle no previous RM

This commit is contained in:
Luke Barnard 2017-04-12 09:47:29 +01:00
parent 7f94709066
commit 77fb2b72ae
1 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,9 @@ class ReadMarkerHandler(BaseHandler):
# 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"]
should_update = True