File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export class MuteState<Label, Selected> {
6161 this . handler$ . next ( defaultHandler ) ;
6262 }
6363
64- private readonly devicesConnected $ = combineLatest ( [
64+ private readonly canControlDevices $ = combineLatest ( [
6565 this . device . available$ ,
6666 this . forceMute$ ,
6767 ] ) . pipe (
@@ -71,17 +71,17 @@ export class MuteState<Label, Selected> {
7171 ) ;
7272
7373 private readonly data$ = this . scope . behavior < MuteStateData > (
74- this . devicesConnected $. pipe (
74+ this . canControlDevices $. pipe (
7575 distinctUntilChanged ( ) ,
7676 withLatestFrom (
7777 this . enabledByDefault$ ,
78- ( devicesConnected , enabledByDefault ) => {
78+ ( canControlDevices , enabledByDefault ) => {
7979 logger . info (
80- `MuteState: devices connected : ${ devicesConnected } , enabled by default: ${ enabledByDefault } ` ,
80+ `MuteState: canControlDevices : ${ canControlDevices } , enabled by default: ${ enabledByDefault } ` ,
8181 ) ;
82- if ( ! devicesConnected ) {
82+ if ( ! canControlDevices ) {
8383 logger . info (
84- `MuteState: devices connected: ${ devicesConnected } , disabling` ,
84+ `MuteState: devices connected: ${ canControlDevices } , disabling` ,
8585 ) ;
8686 // We need to sync the mute state with the handler
8787 // to ensure nothing is beeing published.
You can’t perform that action at this time.
0 commit comments