Renames a variable/field for the purposes of clarity.
This commit is contained in:
parent
ae4dafb06d
commit
4230aa1ff1
|
@ -13,7 +13,7 @@ function SessionBase(connection, sid) {
|
||||||
* in response to a user command in contrast to an automatic decision made
|
* in response to a user command in contrast to an automatic decision made
|
||||||
* by the application logic.
|
* by the application logic.
|
||||||
*/
|
*/
|
||||||
this.muteByUser = true;
|
this.videoMuteByUser = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -285,8 +285,8 @@ SessionBase.prototype.setVideoMute = function (mute, callback, options) {
|
||||||
// The user's command to mute the (local) video takes precedence over any
|
// The user's command to mute the (local) video takes precedence over any
|
||||||
// automatic decision made by the application logic.
|
// automatic decision made by the application logic.
|
||||||
if (byUser) {
|
if (byUser) {
|
||||||
this.muteByUser = mute;
|
this.videoMuteByUser = mute;
|
||||||
} else if (this.muteByUser) {
|
} else if (this.videoMuteByUser) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mute == this.isVideoMute())
|
if (mute == this.isVideoMute())
|
||||||
|
|
Loading…
Reference in New Issue