mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Add missing await
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
cb89dd408c
commit
38a1b922bd
@ -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 New Issue
Block a user