Skip to content
Snippets Groups Projects
Commit aeb1aeb1 authored by Maxim Khlobystov's avatar Maxim Khlobystov
Browse files

Made sure the mute/unmute button is updated when Flash client mutes/unmutes HTML5 client.

parent 12e474fa
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment