summaryrefslogtreecommitdiff
path: root/indra/newview/llvoiceclient.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2025-11-14 16:19:57 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2025-11-14 16:19:57 +0200
commite740bd21e39e93666445abfeb32cf476c249cfb7 (patch)
tree1df16ba9894c812e025b321e540674aa5149ee11 /indra/newview/llvoiceclient.cpp
parentbee23b4956b424f99765fb099906d3cb8250ce63 (diff)
Toggle off 'Speak' button when muted by moderator
Diffstat (limited to 'indra/newview/llvoiceclient.cpp')
-rw-r--r--indra/newview/llvoiceclient.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp
index 5a2ef248ba..2d732d0a71 100644
--- a/indra/newview/llvoiceclient.cpp
+++ b/indra/newview/llvoiceclient.cpp
@@ -714,7 +714,11 @@ bool LLVoiceClient::getPTTIsToggle()
void LLVoiceClient::inputUserControlState(bool down)
{
if (down && !getUserPTTState())
- LLNearbyVoiceModeration::getInstance()->showNotificationIfNeeded();
+ {
+ // Nearby chat is muted by moderator, don't toggle PTT
+ if (LLNearbyVoiceModeration::getInstance()->showNotificationIfNeeded())
+ return;
+ }
if(mPTTIsToggle)
{