chore: Enforce a few house rules via eslint (#2539)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 5572ec728e
commit 921d45e577
100 changed files with 479 additions and 295 deletions
@@ -56,7 +56,7 @@ export class MicrophoneActionsController {
}
this._callAnswered = answered;
if (answered) {
this._unmuteIfConfigured('call');
void this._unmuteIfConfigured('call');
} else {
this._muteIfConfigured('call');
}
@@ -106,7 +106,10 @@ export class MicrophoneActionsController {
this._options?.microphoneManager &&
this._options.autoUnmuteConditions?.includes(condition)
) {
await this._options.microphoneManager.unmute();
// A denied or missing microphone already shows in the UI: the menu
// microphone button switches to its forbidden icon. A failed auto-unmute
// has nothing more to act on.
await this._options.microphoneManager.unmute().catch(() => {});
}
}