Skip to content
Snippets Groups Projects
Commit a908a528 authored by Andrew Dyukov's avatar Andrew Dyukov
Browse files

No ticket. Fixed a bit(added check for canCall()) isCalling() method from...

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-engine
parent 2128a929
No related branches found
No related tags found
No related merge requests found
...@@ -250,17 +250,20 @@ void LLAvatarActions::startAdhocCall(const std::vector<LLUUID>& ids) ...@@ -250,17 +250,20 @@ void LLAvatarActions::startAdhocCall(const std::vector<LLUUID>& ids)
make_ui_sound("UISndStartIM"); 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 // static
bool LLAvatarActions::isCalling(const LLUUID &id) bool LLAvatarActions::isCalling(const LLUUID &id)
{ {
if (id.isNull()) if (id.isNull() || !canCall())
{ {
return false; return false;
} }
LLUUID session_id = gIMMgr->computeSessionID(IM_NOTHING_SPECIAL, id); LLUUID session_id = gIMMgr->computeSessionID(IM_NOTHING_SPECIAL, id);
return (LLIMModel::getInstance()->findIMSession(session_id) != NULL); return (LLIMModel::getInstance()->findIMSession(session_id) != NULL);
} }*/
//static //static
bool LLAvatarActions::canCall() bool LLAvatarActions::canCall()
......
...@@ -126,7 +126,10 @@ class LLAvatarActions ...@@ -126,7 +126,10 @@ class LLAvatarActions
/** /**
* Return true if the avatar is in a P2P voice call with a given user * 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 * @return true if call to the resident can be made
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment