You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-11 17:57:29 +03:00
Fix maximised / pinned widget state being loaded correctly (#7146)
This commit is contained in:
@@ -332,15 +332,15 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
|||||||
|
|
||||||
private checkWidgets = (room) => {
|
private checkWidgets = (room) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
hasPinnedWidgets: WidgetLayoutStore.instance.hasPinnedWidgets(this.state.room),
|
hasPinnedWidgets: WidgetLayoutStore.instance.hasPinnedWidgets(room),
|
||||||
mainSplitContentType: this.getMainSplitContentType(),
|
mainSplitContentType: this.getMainSplitContentType(room),
|
||||||
showApps: this.shouldShowApps(this.state.room),
|
showApps: this.shouldShowApps(room),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
private getMainSplitContentType = () => {
|
private getMainSplitContentType = (room) => {
|
||||||
// TODO-video check if video should be displayed in main panel
|
// TODO-video check if video should be displayed in main panel
|
||||||
return (WidgetLayoutStore.instance.hasMaximisedWidget(this.state.room))
|
return (WidgetLayoutStore.instance.hasMaximisedWidget(room))
|
||||||
? MainSplitContentType.MaximisedWidget
|
? MainSplitContentType.MaximisedWidget
|
||||||
: MainSplitContentType.Timeline;
|
: MainSplitContentType.Timeline;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user