diff options
author | Mike Antipov <mantipov@productengine.com> | 2010-05-27 17:36:34 +0300 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2010-05-27 17:36:34 +0300 |
commit | cf2268635ca6aef99b1d6c01083be4b4a292646a (patch) | |
tree | 8d84db24e28c43fcd9cde6935ebd5bcfc18a9a1c /indra/newview/llvoicevivox.cpp | |
parent | 751b141be0a6481711bb61fb804fb3f5934b051f (diff) |
EXT-6937 FIXED Implemented initializing of moderate_mode on first join voice chat.
This is a workaround until a way to request the current voice channel moderation mode is implemented in the viewer.
Details:
* Added method to initialize Speaker manager's Voice moderate_mode once Agent's participant state is known.
* Once agent's voice participant is updated this method is called.
* This method initializes Voice moderate_mode only once.
This is necessary to process "Mute everyone" menu item calls properly.
Also renamed moderateVoiceOtherParticipants methods with moderateVoiceAllParticipants and related staff.
Reviewed by Aimee Walton at https://codereview.productengine.com/secondlife/r/448/
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llvoicevivox.cpp')
-rw-r--r-- | indra/newview/llvoicevivox.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index bcb1a70efb..1597691347 100644 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -3698,9 +3698,15 @@ void LLVivoxVoiceClient::participantUpdatedEvent( if (speaker_manager) { speaker_manager->update(true); + + // also initialize voice moderate_mode depend on Agent's participant. See EXT-6937. + // *TODO: remove once a way to request the current voice channel moderation mode is implemented. + if (gAgentID == participant->mAvatarID) + { + speaker_manager->initVoiceModerateMode(); + } } } - } else { |