From 0a8067506f6d9983c5503a2f3713ded39c4aa66e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 21 Jul 2021 17:12:27 +0200 Subject: [PATCH] Adjust hiding local feeds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/CallViewSidebar.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/views/voip/CallViewSidebar.tsx b/src/components/views/voip/CallViewSidebar.tsx index c2d1432402..6769cf0f89 100644 --- a/src/components/views/voip/CallViewSidebar.tsx +++ b/src/components/views/voip/CallViewSidebar.tsx @@ -18,7 +18,6 @@ import React from "react"; import { MatrixCall } from "matrix-js-sdk/src/webrtc/call"; import { CallFeed } from "matrix-js-sdk/src/webrtc/callFeed"; import VideoFeed from "./VideoFeed"; -import { SDPStreamMetadataPurpose } from "matrix-js-sdk/src/webrtc/callEventTypes"; interface IProps { feeds: Array; @@ -29,14 +28,7 @@ interface IProps { export default class CallViewSidebar extends React.Component { render() { const feeds = this.props.feeds.map((feed) => { - // Hide local usermedia feed if video is muted or hide any local feed if we should do so - if ( - feed.isLocal() && - ( - (this.props.call.isLocalVideoMuted() && feed.purpose === SDPStreamMetadataPurpose.Usermedia) || - this.props.hideLocalFeeds - ) - ) return; + if (feed.isLocal() && this.props.hideLocalFeeds) return; return (