From 41c3dbde850d20d0ea59f4719baeda28b829932e Mon Sep 17 00:00:00 2001
From: Brian Peiris <brianpeiris@gmail.com>
Date: Wed, 25 Apr 2018 11:15:34 -0700
Subject: [PATCH] avoid flashing mic-denied icon

---
 src/react-components/ui-root.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js
index e933953d0..e1a3b4c70 100644
--- a/src/react-components/ui-root.js
+++ b/src/react-components/ui-root.js
@@ -251,8 +251,8 @@ class UIRoot extends Component {
     const hasGrantedMic = await this.hasGrantedMicPermissions();
 
     if (hasGrantedMic) {
-      this.beginAudioSetup();
       await this.setMediaStreamToDefault();
+      this.beginAudioSetup();
     } else {
       this.setState({ entryStep: ENTRY_STEPS.mic_grant });
     }
-- 
GitLab