video-provider: fix mirrorOwnWebcam behaviour (regression from #10208)

This commit is contained in:
prlanzarin 2020-08-20 01:12:27 +00:00
parent 3099b8fb45
commit 5f72cecf4f
2 changed files with 3 additions and 3 deletions

View File

@ -277,9 +277,9 @@ class VideoService {
};
}
mirrorOwnWebcam(user) {
mirrorOwnWebcam(userId = null) {
// only true if setting defined and video ids match
const isOwnWebcam = user ? this.userId() === user.userId : true;
const isOwnWebcam = userId ? Auth.userID === userId : true;
const isEnabledMirroring = getFromUserSettings('bbb_mirror_own_webcam', MIRROR_WEBCAM);
return isOwnWebcam && isEnabledMirroring;
}

View File

@ -31,7 +31,7 @@ class VideoListItem extends Component {
isFullscreen: false,
};
this.mirrorOwnWebcam = VideoService.mirrorOwnWebcam(props.user);
this.mirrorOwnWebcam = VideoService.mirrorOwnWebcam(props.userId);
this.setVideoIsReady = this.setVideoIsReady.bind(this);
this.onFullscreenChange = this.onFullscreenChange.bind(this);