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) { if (this._isAuthenticated) {
// Authenticated join: Auth cookies are set but we're on the light-meetings // 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 // page (Teams blocks /v2/ for headless browsers). The light-meetings page
// and just click "Join now" directly. Teams will use the auth cookies to // REQUIRES a name to be entered — without it, "Join now" fails with
// identify the user even on the light-meetings page. // "All promises were rejected". We enter the bot name AND rely on auth
this._logger.info('Authenticated join on light-meetings: skipping name, clicking Join now directly...'); // cookies for identification. Teams will show the user as authenticated.
await this._page.waitForTimeout(2000); this._logger.info('Authenticated join on light-meetings: entering name (required by light-meetings)...');
await this._enterBotName();
} else { } else {
// Anonymous join: enter bot name in the name input field // Anonymous join: enter bot name in the name input field
await this._enterBotName(); await this._enterBotName();