remove +1/-1 from min/max id checking
This commit is contained in:
parent
c3bea8dfd1
commit
dff27357d4
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
||||||
const timelineObject = state.timelines[timeline]
|
const timelineObject = state.timelines[timeline]
|
||||||
|
|
||||||
if (timeline && !noIdUpdate) {
|
if (timeline && !noIdUpdate) {
|
||||||
timelineObject.maxId = max([maxBy(statuses, 'id').id + 1, timelineObject.maxId])
|
timelineObject.maxId = max([maxBy(statuses, 'id').id, timelineObject.maxId])
|
||||||
timelineObject.minVisibleId = min([minBy(statuses, 'id').id - 1, timelineObject.minVisibleId])
|
timelineObject.minVisibleId = min([minBy(statuses, 'id').id, timelineObject.minVisibleId])
|
||||||
}
|
}
|
||||||
|
|
||||||
const addStatus = (status, showImmediately, addToTimeline = true) => {
|
const addStatus = (status, showImmediately, addToTimeline = true) => {
|
||||||
|
|
Loading…
Reference in a new issue