From a332ec1608ec2444c82f140d3cbdb8d3bf659343 Mon Sep 17 00:00:00 2001 From: Mike Antipov Date: Thu, 17 Dec 2009 17:03:48 +0200 Subject: Fixed major bug EXT-3467 (Call button/menuitem is disabled for offline avatars) -- implemented verifying only of Voice Client state to enable/disable Call button --HG-- branch : product-engine --- indra/newview/llavataractions.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index 636b1de4d4..c5a1ffdcb3 100644 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -264,11 +264,8 @@ bool LLAvatarActions::isCalling(const LLUUID &id) //static bool LLAvatarActions::canCall(const LLUUID &id) { - if(isFriend(id)) - { - return LLAvatarTracker::instance().isBuddyOnline(id) && LLVoiceClient::voiceEnabled(); - } - else + // For now we do not need to check whether passed UUID is ID of agent's friend. + // Use common check of Voice Client state. { // don't need to check online/offline status because "usual resident" (resident that is not a friend) // can be only ONLINE. There is no way to see "usual resident" in OFFLINE status. If we see "usual -- cgit v1.2.3