mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Adjust hiding local feeds
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
337664a1b4
commit
0a8067506f
@ -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<CallFeed>;
|
||||
@ -29,14 +28,7 @@ interface IProps {
|
||||
export default class CallViewSidebar extends React.Component<IProps> {
|
||||
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 (
|
||||
<VideoFeed
|
||||
|
Loading…
Reference in New Issue
Block a user