fix(settings) Fixes missing previews after device permissions are granted.

This commit is contained in:
mishraditi
2026-03-13 19:55:22 +05:30
committed by GitHub
parent b19d76fbdf
commit 78931d4f0d

View File

@@ -194,6 +194,13 @@ class VideoDeviceSelection extends AbstractDialogTab<IProps, IState> {
!== this.props.selectedVideoInputId) {
this._createVideoInputTrack(this.props.selectedVideoInputId);
}
if (!prevProps.hasVideoPermission && this.props.hasVideoPermission) {
this._createVideoInputTrack(this.props.selectedVideoInputId)
?.then(() => {
this.props.dispatch(getAvailableDevices());
});
}
}
/**