Add a way to maximize/pin widget from the PiP view (#7672)
This commit is contained in:
parent
1a0af54ccb
commit
c79596cfe6
5 changed files with 112 additions and 46 deletions
|
@ -270,6 +270,13 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||
return { primary, sidebar };
|
||||
}
|
||||
|
||||
private onMaximizeClick = (): void => {
|
||||
dis.dispatch({
|
||||
action: 'video_fullscreen',
|
||||
fullscreen: true,
|
||||
});
|
||||
};
|
||||
|
||||
private onMicMuteClick = async (): Promise<void> => {
|
||||
const newVal = !this.state.micMuted;
|
||||
this.setState({ micMuted: await this.props.call.setMicrophoneMuted(newVal) });
|
||||
|
@ -614,6 +621,7 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||
onPipMouseDown={onMouseDownOnHeader}
|
||||
pipMode={pipMode}
|
||||
callRooms={[callRoom, secCallRoom]}
|
||||
onMaximize={this.onMaximizeClick}
|
||||
/>
|
||||
<div className="mx_CallView_content_wrapper" ref={this.contentWrapperRef}>
|
||||
{ this.renderToast() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue