diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2025-11-14 16:19:57 +0200 |
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2025-11-14 16:19:57 +0200 |
| commit | e740bd21e39e93666445abfeb32cf476c249cfb7 (patch) | |
| tree | 1df16ba9894c812e025b321e540674aa5149ee11 /indra/newview/llvoiceclient.cpp | |
| parent | bee23b4956b424f99765fb099906d3cb8250ce63 (diff) | |
Toggle off 'Speak' button when muted by moderator
Diffstat (limited to 'indra/newview/llvoiceclient.cpp')
| -rw-r--r-- | indra/newview/llvoiceclient.cpp | 6 |
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) { |
