Skip to content
Snippets Groups Projects
Commit df366a58 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Merge branch '471-timeline-since-id' into 'develop'

#471 - fix timeline fetch with since_id

Closes #471

See merge request !722
parents 3c293152 d856c274
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!722#471 - fix timeline fetch with since_id
Pipeline #9812 passed
......@@ -123,7 +123,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
const maxNew = statuses.length > 0 ? maxBy(statuses, 'id').id : 0
const minNew = statuses.length > 0 ? minBy(statuses, 'id').id : 0
const newer = timeline && maxNew > timelineObject.maxId && statuses.length > 0
const newer = timeline && (maxNew > timelineObject.maxId || timelineObject.maxId === 0) && statuses.length > 0
const older = timeline && (minNew < timelineObject.minId || timelineObject.minId === 0) && statuses.length > 0
if (!noIdUpdate && newer) {
......
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