Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor src/events/trackAudio/connected.ts #359

Closed
neilenns opened this issue Jan 8, 2025 · 1 comment
Closed

Refactor src/events/trackAudio/connected.ts #359

neilenns opened this issue Jan 8, 2025 · 1 comment
Assignees

Comments

@neilenns
Copy link
Owner

neilenns commented Jan 8, 2025

try {
  const isConnected = trackAudioManager.isConnected;
  const isVoiceConnected = trackAudioManager.isVoiceConnected;
  // Update all controllers in a single pass
  [
    ...actionManager.getTrackAudioStatusControllers(),
    ...actionManager.getMainVolumeControllers(),
  ].forEach((entry) => {
    entry.isConnected = isConnected;
    if ('isVoiceConnected' in entry) {
      entry.isVoiceConnected = isVoiceConnected;
    }
  });
} catch (error) {
  console.error('Failed to update controller states:', error);
}
@neilenns neilenns self-assigned this Jan 8, 2025
@neilenns
Copy link
Owner Author

neilenns commented Jan 9, 2025

Not gonna bother.

@neilenns neilenns closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant