You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Null guard TimelinePanel unmount edge (#8171)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							a3e5231873
						
					
				
				
					commit
					190968c73c
				
			@@ -559,7 +559,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
 | 
			
		||||
        // updates from pagination will happen when the paginate completes.
 | 
			
		||||
        if (toStartOfTimeline || !data || !data.liveEvent) return;
 | 
			
		||||
 | 
			
		||||
        if (!this.messagePanel.current) return;
 | 
			
		||||
        if (!this.messagePanel.current?.getScrollState()) return;
 | 
			
		||||
 | 
			
		||||
        if (!this.messagePanel.current.getScrollState().stuckAtBottom) {
 | 
			
		||||
            // we won't load this event now, because we don't want to push any
 | 
			
		||||
@@ -570,7 +570,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // tell the timeline window to try to advance itself, but not to make
 | 
			
		||||
        // an http request to do so.
 | 
			
		||||
        // a http request to do so.
 | 
			
		||||
        //
 | 
			
		||||
        // we deliberately avoid going via the ScrollPanel for this call - the
 | 
			
		||||
        // ScrollPanel might already have an active pagination promise, which
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user