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
Always hide all feeds
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -646,17 +646,12 @@ export default class CallView extends React.Component<IProps, IState> {
|
||||
let sidebar;
|
||||
if (
|
||||
(!isOnHold && !transfereeCall) &&
|
||||
(
|
||||
(sidebarShown && isVideoCall) ||
|
||||
(someoneIsScreensharing && sidebarShown) ||
|
||||
isScreensharing
|
||||
)
|
||||
sidebarShown && (isVideoCall || someoneIsScreensharing)
|
||||
) {
|
||||
sidebar = (
|
||||
<CallViewSidebar
|
||||
feeds={this.state.secondaryFeeds}
|
||||
call={this.props.call}
|
||||
hideLocalFeeds={isScreensharing && !sidebarShown}
|
||||
pipMode={this.props.pipMode}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -23,15 +23,12 @@ import classNames from "classnames";
|
||||
interface IProps {
|
||||
feeds: Array<CallFeed>;
|
||||
call: MatrixCall;
|
||||
hideLocalFeeds: boolean;
|
||||
pipMode: boolean;
|
||||
}
|
||||
|
||||
export default class CallViewSidebar extends React.Component<IProps> {
|
||||
render() {
|
||||
const feeds = this.props.feeds.map((feed) => {
|
||||
if (feed.isLocal() && this.props.hideLocalFeeds) return;
|
||||
|
||||
return (
|
||||
<VideoFeed
|
||||
key={feed.stream.id}
|
||||
|
||||
Reference in New Issue
Block a user