fix: enter name even for auth joins on light-meetings (required field, without it Join fails)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ValueOn AG 2026-02-16 17:18:18 +01:00
parent 7abd123404
commit 9e24861bab

View file

@ -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();