Revert infinite scroll in timelines back to looking at ID of oldest
loaded status; do not preload submitted statuses into community/public timelines, unless those timelines have already been loaded; do not close streaming API connections for community/public timelines, once they have been established (most users navigate back to them eventually)
This commit is contained in:
		
					parent
					
						
							
								e1b00757a6
							
						
					
				
			
			
				commit
				
					
						fbdb3bcf1e
					
				
			
		
					 5 changed files with 37 additions and 17 deletions
				
			
		|  | @ -85,8 +85,13 @@ export function submitCompose() { | |||
|       dispatch(updateTimeline('home', { ...response.data })); | ||||
| 
 | ||||
|       if (response.data.in_reply_to_id === null && response.data.visibility === 'public') { | ||||
|         dispatch(updateTimeline('community', { ...response.data })); | ||||
|         dispatch(updateTimeline('public', { ...response.data })); | ||||
|         if (getState.getIn(['timelines', 'community', 'loaded'])) { | ||||
|           dispatch(updateTimeline('community', { ...response.data })); | ||||
|         } | ||||
| 
 | ||||
|         if (getState.getIn(['timelines', 'public', 'loaded'])) { | ||||
|           dispatch(updateTimeline('public', { ...response.data })); | ||||
|         } | ||||
|       } | ||||
|     }).catch(function (error) { | ||||
|       dispatch(submitComposeFail(error)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue