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
Don't render any audio non-primary feeds
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -410,9 +410,10 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||||||
// TODO: Later the CallView should probably be reworked to support
|
// TODO: Later the CallView should probably be reworked to support
|
||||||
// any number of feeds but now we can't render more than 4 feeds
|
// any number of feeds but now we can't render more than 4 feeds
|
||||||
if (i >= 4) return;
|
if (i >= 4) return;
|
||||||
// Here we check to hide local audio feeds to achieve the same UI/UX
|
// Here we check to hide any non-main audio feeds from the UI
|
||||||
// as before. But once again this might be subject to change
|
// This is because we don't want them to obstruct the view
|
||||||
if (feed.isVideoMuted() && feed.isLocal()) return;
|
// But once again this might be subject to change
|
||||||
|
if (feed.isVideoMuted() && i > 0) return;
|
||||||
return (
|
return (
|
||||||
<VideoFeed
|
<VideoFeed
|
||||||
key={feed.stream.id}
|
key={feed.stream.id}
|
||||||
|
|||||||
Reference in New Issue
Block a user