Fix muting microphone from hotkey. Didn't update UI before.
parent
9b23c3c615
commit
7e3e4cdd67
|
|
@ -266,28 +266,33 @@ export default class RoomClient
|
||||||
{
|
{
|
||||||
if (this._micProducer)
|
if (this._micProducer)
|
||||||
{
|
{
|
||||||
if (this._micProducer.paused)
|
if (!this._micProducer.paused)
|
||||||
{
|
{
|
||||||
this._micProducer.resume();
|
this.muteMic();
|
||||||
|
|
||||||
store.dispatch(requestActions.notify(
|
|
||||||
{
|
|
||||||
text : 'Unmuted your microphone.'
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this._micProducer.pause();
|
|
||||||
|
|
||||||
store.dispatch(requestActions.notify(
|
store.dispatch(requestActions.notify(
|
||||||
{
|
{
|
||||||
text : 'Muted your microphone.'
|
text : 'Muted your microphone.'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.unmuteMic();
|
||||||
|
|
||||||
|
store.dispatch(requestActions.notify(
|
||||||
|
{
|
||||||
|
text : 'Unmuted your microphone.'
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.enableMic();
|
this.enableMic();
|
||||||
|
|
||||||
|
store.dispatch(requestActions.notify(
|
||||||
|
{
|
||||||
|
text : 'Enabled your microphone.'
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue