Skip to content

Commit f38f28c

Browse files
committed
Hide the Show/Hide Sidebar from the Picture-in-Picture preview
The toggle sidebar button currently does nothing in PIP mode, since PIP mode never shows a sidebar (even when the call is made fullscreen from the PIP preview)
1 parent 7150068 commit f38f28c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/voip/LegacyCallView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export default class LegacyCallView extends React.Component<IProps, IState> {
340340
(call.opponentSupportsSDPStreamMetadata() || call.hasLocalUserMediaVideoTrack) &&
341341
call.state === CallState.Connected;
342342
// Show the sidebar button only if there is something to hide/show
343-
const sidebarButtonShown = (secondaryFeed && !secondaryFeed.isVideoMuted()) || sidebarFeeds.length > 0;
343+
const sidebarButtonShown = !pipMode && ((secondaryFeed && !secondaryFeed.isVideoMuted()) || sidebarFeeds.length > 0);
344344
// The dial pad & 'more' button actions are only relevant in a connected call
345345
const contextMenuButtonShown = callState === CallState.Connected;
346346
const dialpadButtonShown = callState === CallState.Connected && call.opponentSupportsDTMF();

0 commit comments

Comments
 (0)