Mute locked users not remove from audio

This commit is contained in:
Tainan Felipe 2019-03-12 18:33:03 -03:00
parent 2d5d23f75f
commit 46d13fde0f
2 changed files with 6 additions and 4 deletions

View File

@ -37,7 +37,7 @@ const processToggleMuteFromOutside = (e) => {
export default withModalMounter(withTracker(({ mountModal }) => ({
processToggleMuteFromOutside: arg => processToggleMuteFromOutside(arg),
mute: Service.isConnected() && !Service.isListenOnly() && !Service.isEchoTest(),
mute: Service.isConnected() && !Service.isListenOnly() && !Service.isEchoTest() && !Service.audioLocked(),
unmute: Service.isConnected() && !Service.isListenOnly() && Service.isMuted(),
join: Service.isConnected() && !Service.isEchoTest(),
disable: Service.isConnecting() || Service.isHangingUp(),

View File

@ -84,10 +84,12 @@ export default withModalMounter(injectIntl(withTracker(({ mountModal, intl }) =>
const openVideoPreviewModal = () => new Promise((resolve) => {
mountModal(<VideoPreviewContainer resolve={resolve} />);
});
if (Service.audioLocked() && Service.isConnected() && !Service.isListenOnly()) {
Service.exitAudio();
if (Service.audioLocked()
&& Service.isConnected()
&& !Service.isListenOnly()
&& !Service.isMuted()) {
Service.toggleMuteMicrophone();
notify(intl.formatMessage(intlMessages.reconectingAsListener), 'info', 'audio_on');
Service.joinListenOnly();
}
Breakouts.find().observeChanges({