From aeb1aeb14b05393a6b84fe33de472bc41da0ec5f Mon Sep 17 00:00:00 2001
From: Maxim Khlobystov <maxim.khlobystov@gmail.com>
Date: Wed, 10 Jan 2018 15:51:10 -0500
Subject: [PATCH] Made sure the mute/unmute button is updated when Flash client
 mutes/unmutes HTML5 client.

---
 .../imports/ui/services/audio-manager/index.js           | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js
index a2140561df..4b09c335d4 100644
--- a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js
+++ b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js
@@ -33,6 +33,15 @@ class AudioManager {
       error: null,
       outputDeviceId: null,
     });
+
+    const query = VoiceUsers.find({ intId: Auth.userID });
+
+    query.observeChanges({ // keep track of mute/unmute in case of Flash changing it
+      changed: (id, fields) => {
+        if (fields.muted === this.isMuted) return;
+        this.isMuted = fields.muted;
+      },
+    });
   }
 
   init(userData, messages) {
-- 
GitLab