dont set initial phase, show panel when collapsed

pull/21833/head
Bruno Windels 2018-12-17 15:55:26 +01:00
parent f7b6e9c6fc
commit a734fb9d35
3 changed files with 4 additions and 4 deletions

View File

@ -1311,7 +1311,7 @@ export default React.createClass({
<div className="mx_GroupView_header_rightCol">
{ rightButtons }
</div>
<GroupHeaderButtons />
<GroupHeaderButtons collapsedRhs={this.props.collapsedRhs} />
</div>
<MainSplit collapsedRhs={this.props.collapsedRhs} panel={rightPanel}>
<GeminiScrollbarWrapper className="mx_GroupView_body">

View File

@ -25,7 +25,7 @@ export default class HeaderButtons extends React.Component {
super(props);
this.state = {
phase: initialPhase,
phase: props.collapsedRhs ? null : initialPhase,
isUserPrivilegedInGroup: null,
};
this.onAction = this.onAction.bind(this);
@ -58,7 +58,7 @@ export default class HeaderButtons extends React.Component {
phase: null,
});
} else {
if (!this.state.phase) {
if (this.props.collapsedRhs) {
dis.dispatch({
action: 'show_right_panel',
});

View File

@ -424,7 +424,7 @@ module.exports = React.createClass({
{ saveButton }
{ cancelButton }
{ rightRow }
<RoomHeaderButtons />
<RoomHeaderButtons collapsedRhs={this.props.collapsedRhs} />
</div>
</div>
);