1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-16 15:16:38 +00:00

Do not discard statuses obtained via websocket when API request finishes

This backports 0b888acfd4
This commit is contained in:
Thibaut Girka 2018-01-19 21:59:12 +01:00
parent 26ecee79bf
commit 1619efd735

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);
})); }));
}; };