SL-15351 'Speak' button remains active on the parcel with disabled voice

meow-7.2.2
Andrey Kleshchev 2021-06-07 21:02:44 +03:00
parent a4595bdaf2
commit 261ba33537
1 changed files with 6 additions and 0 deletions

View File

@ -4609,6 +4609,12 @@ bool LLVivoxVoiceClient::switchChannel(
// The old session may now need to be deleted.
reapSession(oldSession);
// If voice was on, turn it off
if (LLVoiceClient::getInstance()->getUserPTTState())
{
LLVoiceClient::getInstance()->setUserPTTState(false);
}
notifyStatusObservers(LLVoiceClientStatusObserver::STATUS_VOICE_DISABLED);
}
else