Fix home timeline perpetually reloading when empty

Port 3e0ed36e8e to glitch-soc
This commit is contained in:
Eugen Rochko
2019-03-01 11:11:35 +01:00
committed by Thibaut Girka
parent f513317ba2
commit cce1c3252f
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,8 @@ const initialTimeline = ImmutableMap({
const expandNormalizedTimeline = (state, timeline, statuses, next, isPartial, isLoadingRecent) => {
return state.update(timeline, initialTimeline, map => map.withMutations(mMap => {
mMap.set('isLoading', false);
mMap.set('isPartial', isPartial);
if (!next && !isLoadingRecent) mMap.set('hasMore', false);
if (!statuses.isEmpty()) {