From 38a1b922bd711bee3dbd00bc7ffe722892ffcc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 29 Jul 2021 15:26:04 +0200 Subject: [PATCH] Add missing await MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/VideoFeed.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/views/voip/VideoFeed.tsx b/src/components/views/voip/VideoFeed.tsx index 09d0c97a0d..0d0e874f03 100644 --- a/src/components/views/voip/VideoFeed.tsx +++ b/src/components/views/voip/VideoFeed.tsx @@ -144,7 +144,7 @@ export default class VideoFeed extends React.PureComponent { } private onNewStream = async () => { - this.setState({ + await this.setState({ audioMuted: this.props.feed.isAudioMuted(), videoMuted: this.props.feed.isVideoMuted(), }); @@ -176,11 +176,7 @@ export default class VideoFeed extends React.PureComponent { }); let micIcon; - if ( - feed.purpose !== SDPStreamMetadataPurpose.Screenshare && - !pipMode && - !feed.isLocal() - ) { + if (feed.purpose !== SDPStreamMetadataPurpose.Screenshare && !pipMode) { micIcon = (
);