1
0
Fork 0
forked from srxl/akkoma-fe

remove +1/-1 from min/max id checking

This commit is contained in:
shpuld 2018-04-14 16:33:53 +03:00
parent c3bea8dfd1
commit dff27357d4

View file

@ -120,8 +120,8 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
const timelineObject = state.timelines[timeline]
if (timeline && !noIdUpdate) {
timelineObject.maxId = max([maxBy(statuses, 'id').id + 1, timelineObject.maxId])
timelineObject.minVisibleId = min([minBy(statuses, 'id').id - 1, timelineObject.minVisibleId])
timelineObject.maxId = max([maxBy(statuses, 'id').id, timelineObject.maxId])
timelineObject.minVisibleId = min([minBy(statuses, 'id').id, timelineObject.minVisibleId])
}
const addStatus = (status, showImmediately, addToTimeline = true) => {