Mute locked users not remove from audio
This commit is contained in:
parent
2d5d23f75f
commit
46d13fde0f
@ -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(),
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user