From 165972156ec9152bfae867b76ec13158e54124c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20M=C3=BCller?= <daniel.q.mueller@stud.h-da.de>
Date: Mon, 28 Jun 2021 13:35:37 +0200
Subject: [PATCH] Fix automute

---
 bbb-echotest-autojoin.user.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bbb-echotest-autojoin.user.js b/bbb-echotest-autojoin.user.js
index 7c287c0..04bf48b 100644
--- a/bbb-echotest-autojoin.user.js
+++ b/bbb-echotest-autojoin.user.js
@@ -48,6 +48,9 @@ function isMuted() {
 
         getEchotestAcceptButton().click();
 
+        // Directly after connecting it might be muted for a short time before unmuting
+        await sleep(500);
+
         // Ensure that the microphone is muted after joining
         while (isMuted() != true) {
             getMuteButton().click();
-- 
GitLab