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

Whoops, broke older statuses accidentally

parent fb7a5af3
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -119,9 +119,12 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
const allStatusesObject = state.allStatusesObject
const timelineObject = state.timelines[timeline]
if (timeline && !noIdUpdate) {
if (timeline && !noIdUpdate && statuses.length > 0) {
timelineObject.maxId = max([maxBy(statuses, 'id').id, timelineObject.maxId])
timelineObject.minVisibleId = min([minBy(statuses, 'id').id, timelineObject.minVisibleId])
if (timelineObject.minVisibleId <= 0) {
timelineObject.minVisibleId = minBy(statuses, 'id').id
}
}
const addStatus = (status, showImmediately, addToTimeline = true) => {
......
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