Always hide all feeds
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
8695beb7ca
commit
33abe83dad
2 changed files with 1 additions and 9 deletions
|
@ -646,17 +646,12 @@ export default class CallView extends React.Component<IProps, IState> {
|
||||||
let sidebar;
|
let sidebar;
|
||||||
if (
|
if (
|
||||||
(!isOnHold && !transfereeCall) &&
|
(!isOnHold && !transfereeCall) &&
|
||||||
(
|
sidebarShown && (isVideoCall || someoneIsScreensharing)
|
||||||
(sidebarShown && isVideoCall) ||
|
|
||||||
(someoneIsScreensharing && sidebarShown) ||
|
|
||||||
isScreensharing
|
|
||||||
)
|
|
||||||
) {
|
) {
|
||||||
sidebar = (
|
sidebar = (
|
||||||
<CallViewSidebar
|
<CallViewSidebar
|
||||||
feeds={this.state.secondaryFeeds}
|
feeds={this.state.secondaryFeeds}
|
||||||
call={this.props.call}
|
call={this.props.call}
|
||||||
hideLocalFeeds={isScreensharing && !sidebarShown}
|
|
||||||
pipMode={this.props.pipMode}
|
pipMode={this.props.pipMode}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
@ -23,15 +23,12 @@ import classNames from "classnames";
|
||||||
interface IProps {
|
interface IProps {
|
||||||
feeds: Array<CallFeed>;
|
feeds: Array<CallFeed>;
|
||||||
call: MatrixCall;
|
call: MatrixCall;
|
||||||
hideLocalFeeds: boolean;
|
|
||||||
pipMode: boolean;
|
pipMode: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class CallViewSidebar extends React.Component<IProps> {
|
export default class CallViewSidebar extends React.Component<IProps> {
|
||||||
render() {
|
render() {
|
||||||
const feeds = this.props.feeds.map((feed) => {
|
const feeds = this.props.feeds.map((feed) => {
|
||||||
if (feed.isLocal() && this.props.hideLocalFeeds) return;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<VideoFeed
|
<VideoFeed
|
||||||
key={feed.stream.id}
|
key={feed.stream.id}
|
||||||
|
|
Loading…
Reference in a new issue