File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -173,13 +173,17 @@ export const DailyDevices: React.FC<React.PropsWithChildren<unknown>> = ({
173173 tracks . video . state === 'interrupted' &&
174174 ! tracks . video . persistentTrack ;
175175 const initialCamOff =
176- ! tracks . video . persistentTrack && Boolean ( tracks . video . off ?. byUser ) ;
176+ [ 'idle' , 'pending' ] . includes ( currentCamState ) &&
177+ ! tracks . video . persistentTrack &&
178+ Boolean ( tracks . video . off ?. byUser ) ;
177179 const awaitingMicAccess =
178180 [ 'idle' , 'pending' ] . includes ( currentMicState ) &&
179181 tracks . audio . state === 'interrupted' &&
180182 ! tracks . audio . persistentTrack ;
181183 const initialMicOff =
182- ! tracks . audio . persistentTrack && Boolean ( tracks . audio . off ?. byUser ) ;
184+ [ 'idle' , 'pending' ] . includes ( currentMicState ) &&
185+ ! tracks . audio . persistentTrack &&
186+ Boolean ( tracks . audio . off ?. byUser ) ;
183187
184188 if ( tracks . audio ?. blocked ?. byDeviceInUse ) {
185189 transact_UNSTABLE ( ( { set } ) => {
You can’t perform that action at this time.
0 commit comments