Add options to hide right panel in room view (#31252)
* feat: add options to hide right panel in room view This option is added for the module API. * test: add test for hideRightPanel=true of room view * test: update snapshot ids
This commit is contained in:
@@ -175,6 +175,11 @@ interface IRoomProps extends RoomViewProps {
|
||||
* If true, hide the composer
|
||||
*/
|
||||
hideComposer?: boolean;
|
||||
|
||||
/*
|
||||
* If true, hide the right panel
|
||||
*/
|
||||
hideRightPanel?: boolean;
|
||||
}
|
||||
|
||||
export { MainSplitContentType };
|
||||
@@ -2557,7 +2562,8 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
||||
);
|
||||
}
|
||||
|
||||
const showRightPanel = !isRoomEncryptionLoading && this.state.room && this.state.showRightPanel;
|
||||
const showRightPanel =
|
||||
!this.props.hideRightPanel && !isRoomEncryptionLoading && this.state.room && this.state.showRightPanel;
|
||||
|
||||
const rightPanel = showRightPanel ? (
|
||||
<RightPanel
|
||||
|
||||
Reference in New Issue
Block a user