mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 00:31:32 +03:00
Also turn off camera when hiding sidebar
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
60ab7aaed5
commit
a933e08e5f
1 changed files with 9 additions and 1 deletions
|
@ -431,7 +431,15 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||
}
|
||||
|
||||
private onToggleSidebar = () => {
|
||||
this.setState({ sidebarShown: !this.state.sidebarShown });
|
||||
let vidMuted = this.state.vidMuted;
|
||||
if (this.state.screensharing) {
|
||||
vidMuted = this.state.sidebarShown;
|
||||
this.props.call.setLocalVideoMuted(vidMuted);
|
||||
}
|
||||
this.setState({
|
||||
vidMuted: vidMuted,
|
||||
sidebarShown: !this.state.sidebarShown,
|
||||
});
|
||||
}
|
||||
|
||||
private renderCallControls(): JSX.Element {
|
||||
|
|
Loading…
Reference in a new issue