At the Singularity group's request: Another attempt to mute voice upon reconnecting to local voice if the setting requests such

This commit is contained in:
Inusaito Sayori
2013-08-29 14:05:24 -04:00
parent 50a85109a0
commit d9bff43dd8

View File

@@ -685,6 +685,13 @@ void LLVoiceChannelProximal::activate()
// we're connected to a non-spatial channel, so disconnect.
LLVoiceClient::getInstance()->leaveNonSpatialChannel();
}
// Singu Note: Mic default state is OFF for local voice
if (LLVoiceClient::getInstance()->getUserPTTState() && LLVoiceClient::getInstance()->getPTTIsToggle() && gSavedSettings.getBOOL("AutoDisengageMic"))
{
LLVoiceClient::getInstance()->inputUserControlState(true);
}
LLVoiceChannel::activate();
}