You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-14 19:02:33 +03:00
dont set initial phase, show panel when collapsed
This commit is contained in:
@@ -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',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user