Use getLocalFeeds() for better clarity

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-27 12:23:21 +02:00
parent e367725cce
commit 8d014b7fa2
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 2 additions and 2 deletions

View File

@ -592,10 +592,10 @@ export default class CallView extends React.Component<IProps, IState> {
mx_CallView_voice: true,
});
const feeds = this.state.feeds.map((feed, i) => {
const feeds = this.props.call.getLocalFeeds().map((feed, i) => {
// Here we check to hide local audio feeds to achieve the same UI/UX
// as before. But once again this might be subject to change
if (feed.isVideoMuted() && feed.isLocal()) return;
if (feed.isVideoMuted()) return;
return (
<VideoFeed
key={i}