mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Fix maximised / pinned widget state being loaded correctly (#7146)
This commit is contained in:
parent
edfebdcdfb
commit
645f900a36
1 changed files with 5 additions and 5 deletions
|
@ -332,15 +332,15 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
|||
|
||||
private checkWidgets = (room) => {
|
||||
this.setState({
|
||||
hasPinnedWidgets: WidgetLayoutStore.instance.hasPinnedWidgets(this.state.room),
|
||||
mainSplitContentType: this.getMainSplitContentType(),
|
||||
showApps: this.shouldShowApps(this.state.room),
|
||||
hasPinnedWidgets: WidgetLayoutStore.instance.hasPinnedWidgets(room),
|
||||
mainSplitContentType: this.getMainSplitContentType(room),
|
||||
showApps: this.shouldShowApps(room),
|
||||
});
|
||||
};
|
||||
|
||||
private getMainSplitContentType = () => {
|
||||
private getMainSplitContentType = (room) => {
|
||||
// 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.Timeline;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue