perf: skip language dropdown search (-35s join delay)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ValueOn AG 2026-02-18 00:21:49 +01:00
parent ad8c858ce4
commit 6da5e3d3b9

View file

@ -55,10 +55,9 @@ export class CaptionsProcedure {
this._logger.info('Captions/transcription enabled'); this._logger.info('Captions/transcription enabled');
// Only try separate language setting if dialog wasn't already handled // Language setting skipped: spoken language is managed by the meeting organizer.
if (!dialogHandled) { // The previous _setSpokenLanguage() call added ~30s delay searching for a dropdown
await this._setSpokenLanguage(); // that was never found, while captions already worked in the correct language.
}
} }
/** /**
@ -368,7 +367,7 @@ export class CaptionsProcedure {
private async _handleLanguageDialog(): Promise<boolean> { private async _handleLanguageDialog(): Promise<boolean> {
try { try {
const dialogSelector = '[data-tid="spoken-language-selection-dialog"]'; const dialogSelector = '[data-tid="spoken-language-selection-dialog"]';
await this._page.waitForSelector(dialogSelector, { timeout: 8000 }); await this._page.waitForSelector(dialogSelector, { timeout: 3000 });
this._logger.info('Spoken language selection dialog appeared'); this._logger.info('Spoken language selection dialog appeared');
// Read current language from dropdown button // Read current language from dropdown button