Always unhide widgets on layout change (pinning a widget) (#7299)
This commit is contained in:
parent
f938bfaab9
commit
ed895f5881
1 changed files with 4 additions and 0 deletions
|
@ -330,6 +330,10 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
||||||
|
|
||||||
private onWidgetLayoutChange = () => {
|
private onWidgetLayoutChange = () => {
|
||||||
if (!this.state.room) return;
|
if (!this.state.room) return;
|
||||||
|
dis.dispatch({
|
||||||
|
action: "appsDrawer",
|
||||||
|
show: true,
|
||||||
|
});
|
||||||
if (WidgetLayoutStore.instance.hasMaximisedWidget(this.state.room)) {
|
if (WidgetLayoutStore.instance.hasMaximisedWidget(this.state.room)) {
|
||||||
// Show chat in right panel when a widget is maximised
|
// Show chat in right panel when a widget is maximised
|
||||||
dis.dispatch<SetRightPanelPhasePayload>({
|
dis.dispatch<SetRightPanelPhasePayload>({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue