No ticket. Fixed a bit(added check for canCall()) isCalling() method from LLAvataActions, but it appears that it is not used anywhere. So i commented it out. Maybe it should be removed?
--HG-- branch : product-enginemeow-7.2.2
parent
2128a929c3
commit
a908a528fe
|
|
@ -250,17 +250,20 @@ void LLAvatarActions::startAdhocCall(const std::vector<LLUUID>& ids)
|
|||
make_ui_sound("UISndStartIM");
|
||||
}
|
||||
|
||||
/* AD *TODO: Is this function needed any more?
|
||||
I fixed it a bit(added check for canCall), but it appears that it is not used
|
||||
anywhere. Maybe it should be removed?
|
||||
// static
|
||||
bool LLAvatarActions::isCalling(const LLUUID &id)
|
||||
{
|
||||
if (id.isNull())
|
||||
if (id.isNull() || !canCall())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
LLUUID session_id = gIMMgr->computeSessionID(IM_NOTHING_SPECIAL, id);
|
||||
return (LLIMModel::getInstance()->findIMSession(session_id) != NULL);
|
||||
}
|
||||
}*/
|
||||
|
||||
//static
|
||||
bool LLAvatarActions::canCall()
|
||||
|
|
|
|||
|
|
@ -126,7 +126,10 @@ public:
|
|||
/**
|
||||
* Return true if the avatar is in a P2P voice call with a given user
|
||||
*/
|
||||
static bool isCalling(const LLUUID &id);
|
||||
/* AD *TODO: Is this function needed any more?
|
||||
I fixed it a bit(added check for canCall), but it appears that it is not used
|
||||
anywhere. Maybe it should be removed?
|
||||
static bool isCalling(const LLUUID &id);*/
|
||||
|
||||
/**
|
||||
* @return true if call to the resident can be made
|
||||
|
|
|
|||
Loading…
Reference in New Issue