Remove unused computation of reblog references from updateTimeline (#9244)
This commit is contained in:
		
							parent
							
								
									a3f443b9c3
								
							
						
					
					
						commit
						3472950cea
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -16,8 +16,6 @@ export const TIMELINE_DISCONNECT = 'TIMELINE_DISCONNECT';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function updateTimeline(timeline, status, accept) {
 | 
					export function updateTimeline(timeline, status, accept) {
 | 
				
			||||||
  return (dispatch, getState) => {
 | 
					  return (dispatch, getState) => {
 | 
				
			||||||
    const references = status.reblog ? getState().get('statuses').filter((item, itemId) => (itemId === status.reblog.id || item.get('reblog') === status.reblog.id)).map((_, itemId) => itemId) : [];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (typeof accept === 'function' && !accept(status)) {
 | 
					    if (typeof accept === 'function' && !accept(status)) {
 | 
				
			||||||
      return;
 | 
					      return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					@ -28,7 +26,6 @@ export function updateTimeline(timeline, status, accept) {
 | 
				
			||||||
      type: TIMELINE_UPDATE,
 | 
					      type: TIMELINE_UPDATE,
 | 
				
			||||||
      timeline,
 | 
					      timeline,
 | 
				
			||||||
      status,
 | 
					      status,
 | 
				
			||||||
      references,
 | 
					 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue