Add missing await
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
cb89dd408c
commit
38a1b922bd
1 changed files with 2 additions and 6 deletions
|
@ -144,7 +144,7 @@ export default class VideoFeed extends React.PureComponent<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private onNewStream = async () => {
|
private onNewStream = async () => {
|
||||||
this.setState({
|
await this.setState({
|
||||||
audioMuted: this.props.feed.isAudioMuted(),
|
audioMuted: this.props.feed.isAudioMuted(),
|
||||||
videoMuted: this.props.feed.isVideoMuted(),
|
videoMuted: this.props.feed.isVideoMuted(),
|
||||||
});
|
});
|
||||||
|
@ -176,11 +176,7 @@ export default class VideoFeed extends React.PureComponent<IProps, IState> {
|
||||||
});
|
});
|
||||||
|
|
||||||
let micIcon;
|
let micIcon;
|
||||||
if (
|
if (feed.purpose !== SDPStreamMetadataPurpose.Screenshare && !pipMode) {
|
||||||
feed.purpose !== SDPStreamMetadataPurpose.Screenshare &&
|
|
||||||
!pipMode &&
|
|
||||||
!feed.isLocal()
|
|
||||||
) {
|
|
||||||
micIcon = (
|
micIcon = (
|
||||||
<div className={micIconClasses} />
|
<div className={micIconClasses} />
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue