diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-01 11:11:35 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-03-05 19:30:11 +0100 |
commit | cce1c3252f271bb5daa5ace05c971d6e1b8f298d (patch) | |
tree | 2202d65e7414cd8f35382601dbd34363b93629ad /app/javascript/flavours/glitch/reducers | |
parent | f513317ba262d9f5d7aa7dd66f8b61690297e107 (diff) |
Fix home timeline perpetually reloading when empty
Port 3e0ed36e8ede7f1994ab9c46c4cb86e613569440 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/reducers')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/timelines.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/timelines.js b/app/javascript/flavours/glitch/reducers/timelines.js index d7d5ac43f..4179cf477 100644 --- a/app/javascript/flavours/glitch/reducers/timelines.js +++ b/app/javascript/flavours/glitch/reducers/timelines.js @@ -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()) { |