You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-07 03:42:20 +03:00
Set header buttons to no phase when right panel is closed (#7506)
This commit is contained in:
@@ -80,7 +80,8 @@ export default abstract class HeaderButtons<P = {}> extends React.Component<IPro
|
||||
}
|
||||
}
|
||||
|
||||
public isPhase(phases: string | string[]) {
|
||||
public isPhase(phases: string | string[]): boolean {
|
||||
if (!RightPanelStore.instance.isOpenForRoom) return false;
|
||||
if (Array.isArray(phases)) {
|
||||
return phases.includes(this.state.phase);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user