diff --git a/src/bot/joinProcedure.ts b/src/bot/joinProcedure.ts index 97ed58d..b63f9cf 100644 --- a/src/bot/joinProcedure.ts +++ b/src/bot/joinProcedure.ts @@ -132,11 +132,12 @@ export class JoinProcedure { if (this._isAuthenticated) { // Authenticated join: Auth cookies are set but we're on the light-meetings - // page (Teams blocks /v2/ for headless browsers). We skip entering a name - // and just click "Join now" directly. Teams will use the auth cookies to - // identify the user even on the light-meetings page. - this._logger.info('Authenticated join on light-meetings: skipping name, clicking Join now directly...'); - await this._page.waitForTimeout(2000); + // page (Teams blocks /v2/ for headless browsers). The light-meetings page + // REQUIRES a name to be entered — without it, "Join now" fails with + // "All promises were rejected". We enter the bot name AND rely on auth + // cookies for identification. Teams will show the user as authenticated. + this._logger.info('Authenticated join on light-meetings: entering name (required by light-meetings)...'); + await this._enterBotName(); } else { // Anonymous join: enter bot name in the name input field await this._enterBotName();