1
0
Fork 0
forked from srxl/akkoma-fe

Additional check to make console shut up

This commit is contained in:
shpuld 2018-04-15 00:06:00 +03:00
parent e88bb1a23e
commit 208b2ed125

View file

@ -121,7 +121,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
const timelineObject = state.timelines[timeline]
const maxNew = statuses.length > 0 ? maxBy(statuses, 'id').id : 0
const older = maxNew < timelineObject.maxId
const older = timeline && maxNew < timelineObject.maxId
if (timeline && !noIdUpdate && statuses.length > 0 && !older) {
timelineObject.maxId = maxNew