This repository was archived by the owner on Oct 22, 2024. It is now read-only.
File tree 1 file changed +10
-0
lines changed
src/components/views/elements
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
50
50
import { SdkContextClass } from "../../../contexts/SDKContext" ;
51
51
import { ModuleRunner } from "../../../modules/ModuleRunner" ;
52
52
import { parseUrl } from "../../../utils/UrlUtils" ;
53
+ import RightPanelStore from "../../../stores/right-panel/RightPanelStore.ts" ;
54
+ import { RightPanelPhases } from "../../../stores/right-panel/RightPanelStorePhases.ts" ;
53
55
54
56
interface IProps {
55
57
app : IWidget | IApp ;
@@ -576,6 +578,14 @@ export default class AppTile extends React.Component<IProps, IState> {
576
578
? Container . Top
577
579
: Container . Center ;
578
580
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
+ }
579
589
} ;
580
590
581
591
private onMinimiseClicked = ( ) : void => {
You can’t perform that action at this time.
0 commit comments