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

Do not discard statuses obtained via websocket when API request finishes
lolsob-rspec
David Yip 2018-01-19 15:17:20 -06:00 committed by GitHub
commit f281097ea7
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ const normalizeTimeline = (state, timeline, statuses, next, isPartial) => {
mMap.set('loaded', true); mMap.set('loaded', true);
mMap.set('isLoading', false); mMap.set('isLoading', false);
if (!hadNext) mMap.set('next', next); 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); mMap.set('isPartial', isPartial);
})); }));
}; };