Add missing await

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-29 15:26:04 +02:00
parent cb89dd408c
commit 38a1b922bd
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D

View file

@ -144,7 +144,7 @@ export default class VideoFeed extends React.PureComponent<IProps, IState> {
}
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<IProps, IState> {
});
let micIcon;
if (
feed.purpose !== SDPStreamMetadataPurpose.Screenshare &&
!pipMode &&
!feed.isLocal()
) {
if (feed.purpose !== SDPStreamMetadataPurpose.Screenshare && !pipMode) {
micIcon = (
<div className={micIconClasses} />
);