mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
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 () => {
|
||||
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} />
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue