This repository was archived by the owner on Oct 22, 2024. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed 
src/components/views/elements Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ import { WidgetMessagingStore } from "../../../stores/widgets/WidgetMessagingSto
5050import  {  SdkContextClass  }  from  "../../../contexts/SDKContext" ; 
5151import  {  ModuleRunner  }  from  "../../../modules/ModuleRunner" ; 
5252import  {  parseUrl  }  from  "../../../utils/UrlUtils" ; 
53+ import  RightPanelStore  from  "../../../stores/right-panel/RightPanelStore.ts" ; 
54+ import  {  RightPanelPhases  }  from  "../../../stores/right-panel/RightPanelStorePhases.ts" ; 
5355
5456interface  IProps  { 
5557    app : IWidget  |  IApp ; 
@@ -576,6 +578,14 @@ export default class AppTile extends React.Component<IProps, IState> {
576578            ? Container . Top 
577579            : Container . Center ; 
578580        WidgetLayoutStore . instance . moveToContainer ( this . props . room ,  this . props . app ,  targetContainer ) ; 
581+ 
582+         // If the right panel has a timeline, but we're about to show the timeline in the main view, pop the right panel 
583+         if  ( 
584+             targetContainer  ===  Container . Top  && 
585+             RightPanelStore . instance . currentCardForRoom ( this . props . room . roomId ) . phase  ===  RightPanelPhases . Timeline 
586+         )  { 
587+             RightPanelStore . instance . popCard ( this . props . room . roomId ) ; 
588+         } 
579589    } ; 
580590
581591    private  onMinimiseClicked  =  ( ) : void =>  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments