forked from cybrespace/mastodon
		
	Do not throw away statuses obtained via websocket when API request finishes (#6302)
This commit is contained in:
		
							parent
							
								
									238de58e65
								
							
						
					
					
						commit
						0b888acfd4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -40,7 +40,7 @@ const normalizeTimeline = (state, timeline, statuses, next, isPartial) => {
 | 
			
		|||
    mMap.set('loaded', true);
 | 
			
		||||
    mMap.set('isLoading', false);
 | 
			
		||||
    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);
 | 
			
		||||
  }));
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue