Always unhide widgets on layout change (pinning a widget) (#7299)

pull/21833/head
Timo 2021-12-13 17:46:50 +01:00 committed by GitHub
parent f938bfaab9
commit ed895f5881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -330,6 +330,10 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
private onWidgetLayoutChange = () => {
if (!this.state.room) return;
dis.dispatch({
action: "appsDrawer",
show: true,
});
if (WidgetLayoutStore.instance.hasMaximisedWidget(this.state.room)) {
// Show chat in right panel when a widget is maximised
dis.dispatch<SetRightPanelPhasePayload>({