diff options
| author | Mike Antipov <mantipov@productengine.com> | 2009-12-29 16:40:17 +0200 | 
|---|---|---|
| committer | Mike Antipov <mantipov@productengine.com> | 2009-12-29 16:40:17 +0200 | 
| commit | f669b484ac1c18c8a18aecb7890419c5768a0a04 (patch) | |
| tree | 5923511451e27a32cd7a7c2bb2ad5d667e875d37 | |
| parent | a9453573d2d510ad6db875acbee08539d02d9cbd (diff) | |
Fixed low bug EXT-3677 (Resident doesn't appear in the nearby voice list after enabling voice)
-- made participant dimmed for a few seconds before disappearing
--HG--
branch : product-engine
| -rw-r--r-- | indra/newview/llcallfloater.cpp | 20 | 
1 files changed, 6 insertions, 14 deletions
diff --git a/indra/newview/llcallfloater.cpp b/indra/newview/llcallfloater.cpp index b988af3b50..651dac6635 100644 --- a/indra/newview/llcallfloater.cpp +++ b/indra/newview/llcallfloater.cpp @@ -565,23 +565,15 @@ void LLCallFloater::updateParticipantsVoiceState()  			// HAS LEFT the call.  			if ((getState(participant_id) == STATE_JOINED))  			{ -				if (mVoiceType == VC_LOCAL_CHAT) +				setState(item, STATE_LEFT); + +				LLPointer<LLSpeaker> speaker = mSpeakerManager->findSpeaker(item->getAvatarId()); +				if (speaker.isNull())  				{ -					// Don't display avatars that aren't in our nearby chat range anymore as "left". Remove them immediately. -					removeVoiceLeftParticipant(participant_id); +					continue;  				} -				else -				{ -					setState(item, STATE_LEFT); -					LLPointer<LLSpeaker> speaker = mSpeakerManager->findSpeaker(item->getAvatarId()); -					if (speaker.isNull()) -					{ -						continue; -					} - -					speaker->mHasLeftCurrentCall = TRUE; -				} +				speaker->mHasLeftCurrentCall = TRUE;  			}  			// If an avatarID is not found in a speakers list from VoiceClient and  			// a panel with this ID has a LEFT status this means that this person  | 
