mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-20 09:34:17 -05:00
Handle no previous RM
This commit is contained in:
parent
7f94709066
commit
77fb2b72ae
@ -43,6 +43,9 @@ class ReadMarkerHandler(BaseHandler):
|
|||||||
# Get ordering for existing read marker
|
# Get ordering for existing read marker
|
||||||
with (yield self.read_marker_linearizer.queue((room_id, user_id))):
|
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)
|
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["m.read_marker"]
|
||||||
|
|
||||||
should_update = True
|
should_update = True
|
||||||
|
Loading…
Reference in New Issue
Block a user