Update sidebar behaviour
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
74649f1f92
commit
337664a1b4
2 changed files with 15 additions and 6 deletions
|
@ -23,16 +23,19 @@ import { SDPStreamMetadataPurpose } from "matrix-js-sdk/src/webrtc/callEventType
|
|||
interface IProps {
|
||||
feeds: Array<CallFeed>;
|
||||
call: MatrixCall;
|
||||
hideLocalFeeds: boolean;
|
||||
}
|
||||
|
||||
export default class CallViewSidebar extends React.Component<IProps> {
|
||||
render() {
|
||||
const feeds = this.props.feeds.map((feed) => {
|
||||
// Hide local video feed if video is off
|
||||
// Hide local usermedia feed if video is muted or hide any local feed if we should do so
|
||||
if (
|
||||
this.props.call.isLocalVideoMuted()
|
||||
&& feed.isLocal()
|
||||
&& feed.purpose === SDPStreamMetadataPurpose.Usermedia
|
||||
feed.isLocal() &&
|
||||
(
|
||||
(this.props.call.isLocalVideoMuted() && feed.purpose === SDPStreamMetadataPurpose.Usermedia) ||
|
||||
this.props.hideLocalFeeds
|
||||
)
|
||||
) return;
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue