Browse Source

Merge pull request #339 from ThibG/glitch-soc/features/timeline-tweaks

Do not discard statuses obtained via websocket when API request finishes
closed-social-glitch-2
David Yip 6 years ago
committed by GitHub
parent
commit
b8c6656ce9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/reducers/timelines.js

+ 1
- 1
app/javascript/flavours/glitch/reducers/timelines.js View File

@ -40,7 +40,7 @@ const normalizeTimeline = (state, timeline, statuses, next, isPartial) => {
mMap.set('loaded', true);
mMap.set('isLoading', false);
if (!hadNext) mMap.set('next', next);
mMap.set('items', wasLoaded ? ids.concat(oldIds) : ids);
mMap.set('items', wasLoaded ? ids.concat(oldIds) : oldIds.concat(ids));
mMap.set('isPartial', isPartial);
}));
};

Loading…
Cancel
Save