summaryrefslogtreecommitdiff
path: root/indra/newview/llvoiceclient.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-03-30 17:10:44 +0800
committerErik Kundiman <erik@megapahit.org>2026-03-30 17:10:44 +0800
commit14239ba6f6d4a73038a270de5d8f295fb59498bd (patch)
treeb64cb90623d9cf4709fc2bec5a51b4c99a421a4a /indra/newview/llvoiceclient.cpp
parenteac10375e294cd24c21c09497e838e70dcf4d74a (diff)
parentf148dbcc8a9566f1f717fdeb00813ad57427bee7 (diff)
Merge tag 'Second_Life_Release#f148dbcc-26.2' into 2026.02
Diffstat (limited to 'indra/newview/llvoiceclient.cpp')
-rw-r--r--indra/newview/llvoiceclient.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp
index 91d5451bff..4fd0a8e2b8 100644
--- a/indra/newview/llvoiceclient.cpp
+++ b/indra/newview/llvoiceclient.cpp
@@ -749,6 +749,9 @@ void LLVoiceClient::setUserPTTState(bool ptt)
{
if (ptt)
{
+ // Nearby chat is muted by moderator, don't toggle PTT
+ if (!mUserPTTState && LLNearbyVoiceModeration::getInstance()->showNotificationIfNeeded())
+ return;
LLUIUsage::instance().logCommand("Agent.EnableMicrophone");
}
mUserPTTState = ptt;
@@ -793,13 +796,6 @@ bool LLVoiceClient::getPTTIsToggle()
void LLVoiceClient::inputUserControlState(bool down)
{
- if (down && !getUserPTTState())
- {
- // Nearby chat is muted by moderator, don't toggle PTT
- if (LLNearbyVoiceModeration::getInstance()->showNotificationIfNeeded())
- return;
- }
-
if(mPTTIsToggle)
{
if(down) // toggle open-mic state on 'down'