video-provider: fix mirrorOwnWebcam behaviour (regression from #10208)
This commit is contained in:
parent
3099b8fb45
commit
5f72cecf4f
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user