mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:54:47 -04:00
Simplify is_event_after logic
This commit is contained in:
parent
cf6121e3da
commit
b9557064bf
2 changed files with 6 additions and 12 deletions
|
@ -48,9 +48,10 @@ class ReadMarkerHandler(BaseHandler):
|
|||
should_update = True
|
||||
|
||||
if existing_read_marker:
|
||||
# Only update if the new marker is ahead in the stream
|
||||
should_update = yield self.store.is_event_after(
|
||||
existing_read_marker['marker'],
|
||||
event_id
|
||||
event_id,
|
||||
existing_read_marker['marker']
|
||||
)
|
||||
|
||||
if should_update:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue