diff options
| author | jared <jaredrmain@gmail.com> | 2019-04-01 13:25:48 -0400 |
|---|---|---|
| committer | jared <jaredrmain@gmail.com> | 2019-04-01 13:25:48 -0400 |
| commit | d856c2745cdbb823bae19b7a381c0e3fb988f74d (patch) | |
| tree | 8b8b22bb2fc0913fcddba5b8bd8ebbe232a6c57f /src | |
| parent | 6c24ae9b0be25becc453cd62ba78b955c5fb6c70 (diff) | |
#471 - fix timeline fetch with since_id
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/statuses.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 742eecba..8e0203e3 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -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) { |
