From 261ba33537235fc0ed88e2fea169dbae793ba7ff Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Mon, 7 Jun 2021 21:02:44 +0300 Subject: SL-15351 'Speak' button remains active on the parcel with disabled voice --- indra/newview/llvoicevivox.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra') diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 04d84ad905..91c6a9d4f9 100644 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -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 -- cgit v1.2.3