mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-21 03:42:55 +03:00
Fix bug in DTG
This commit is contained in:
parent
549e580dc9
commit
b76f1e2cb8
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ class EventsWorkerStore(SQLBaseStore):
|
||||||
else:
|
else:
|
||||||
event_id_after, ts_after = None, None
|
event_id_after, ts_after = None, None
|
||||||
|
|
||||||
if event_id_before and event_id_before:
|
if event_id_before and event_id_after:
|
||||||
# Return the closest one
|
# Return the closest one
|
||||||
if (timestamp - ts_before) < (ts_after - timestamp):
|
if (timestamp - ts_before) < (ts_after - timestamp):
|
||||||
return event_id_before
|
return event_id_before
|
||||||
|
|
Loading…
Reference in a new issue