You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Correct sidebar toggle behaviour
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -337,7 +337,11 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||||||
return source;
|
return source;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
this.setState({ screensharing: isScreensharing });
|
|
||||||
|
this.setState({
|
||||||
|
sidebarShown: true,
|
||||||
|
screensharing: isScreensharing,
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
private onMoreClick = (): void => {
|
private onMoreClick = (): void => {
|
||||||
@@ -434,13 +438,7 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
private onToggleSidebar = (): void => {
|
private onToggleSidebar = (): void => {
|
||||||
let vidMuted = this.state.vidMuted;
|
|
||||||
if (this.state.screensharing) {
|
|
||||||
vidMuted = this.state.sidebarShown;
|
|
||||||
this.props.call.setLocalVideoMuted(vidMuted);
|
|
||||||
}
|
|
||||||
this.setState({
|
this.setState({
|
||||||
vidMuted: vidMuted,
|
|
||||||
sidebarShown: !this.state.sidebarShown,
|
sidebarShown: !this.state.sidebarShown,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user