Don't show sidebar in PiP

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-06-12 11:03:14 +02:00
parent e431f41e11
commit 176fb9baae
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 12 additions and 8 deletions

View File

@ -608,6 +608,16 @@ export default class CallView extends React.Component<IProps, IState> {
</div>;
}
let sidebar;
if (!isOnHold && !transfereeCall && !this.props.pipMode) {
sidebar = (
<CallViewSidebar
feeds={this.state.secondaryFeeds}
call={this.props.call}
/>
);
}
// This is a bit messy. I can't see a reason to have two onHold/transfer screens
if (isOnHold || transfereeCall) {
if (this.props.call.type === CallType.Video) {
@ -675,10 +685,7 @@ export default class CallView extends React.Component<IProps, IState> {
className={classes}
onMouseMove={this.onMouseMove}
>
<CallViewSidebar
feeds={this.state.secondaryFeeds}
call={this.props.call}
/>
{ sidebar }
<div className="mx_CallView_voice_avatarsContainer">
<div
className="mx_CallView_voice_avatarContainer"
@ -707,10 +714,7 @@ export default class CallView extends React.Component<IProps, IState> {
ref={this.contentRef}
onMouseMove={this.onMouseMove}
>
<CallViewSidebar
feeds={this.state.secondaryFeeds}
call={this.props.call}
/>
{ sidebar }
<VideoFeed
feed={this.state.primaryFeed}
call={this.props.call}