diff options
| author | dave <starpumadev@gmail.com> | 2019-04-02 10:07:36 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-04-02 10:07:36 -0400 |
| commit | 8b3f037f877e1bd8a77f925e4d9d06b45addee8b (patch) | |
| tree | 3cb4e2df8b21c8673971a2f69e4e6588305c2ae7 /src/modules/statuses.js | |
| parent | 6482201dc9e54d458bec48794260ffa1749c512b (diff) | |
| parent | ac28e8c2f981b6584f0103e10b0a5f5b025fcaae (diff) | |
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma-fe into issue-436-mastoapi-notifications
Diffstat (limited to 'src/modules/statuses.js')
| -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 63af7ce2..c5cfbd08 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) { |
