Skip to content

Commit 7715e63

Browse files
committed
Fix Google Meet participant verification with fallback detection methods
1 parent 12ce0a7 commit 7715e63

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meeting-bot",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "Run meeting bots for Google Meet, Microsoft Teams and Zoom",
55
"main": "index.js",
66
"license": "MIT",

src/bots/GoogleMeetBot.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,25 @@ export class GoogleMeetBot extends MeetBotBase {
289289
}
290290
}
291291

292+
// Fallback: Check for text that indicates we're in the call
293+
const bodyText = document.body.innerText;
294+
if (bodyText.includes('You have joined the call') ||
295+
bodyText.includes('other person in the call') ||
296+
bodyText.includes('people in the call')) {
297+
return true;
298+
}
299+
300+
// Fallback: Check for Leave call button which indicates we're in a call
301+
const leaveCallButton = document.querySelector('button[aria-label="Leave call"]');
302+
if (leaveCallButton) {
303+
// If we have Leave call button AND no lobby mode text, we're likely in the call
304+
const hasLobbyText = bodyText.includes('Asking to join') ||
305+
bodyText.includes('You\'re the only one here');
306+
if (!hasLobbyText) {
307+
return true;
308+
}
309+
}
310+
292311
return false;
293312
} catch (e) {
294313
return false;

0 commit comments

Comments
 (0)