fixed EXT-4893 “'Add friend' available for friends in group/conference sessions”,

corrected condition for enable 'add friend' menu item;

--HG--
branch : product-engine
meow-7.2.2
Alexei Arabadji 2010-02-04 19:10:24 +02:00
parent 353be3c934
commit 78200e2c1c
1 changed files with 2 additions and 2 deletions

View File

@ -584,7 +584,7 @@ bool LLParticipantList::LLParticipantListMenu::enableContextMenuItem(const LLSD&
{
std::string item = userdata.asString();
if (item == "can_mute_text" || "can_block" == item || "can_share" == item || "can_im" == item
|| "can_pay" == item || "can_add" == item)
|| "can_pay" == item)
{
return mUUIDs.front() != gAgentID;
}
@ -619,7 +619,7 @@ bool LLParticipantList::LLParticipantListMenu::enableContextMenuItem(const LLSD&
for (;id != uuids_end; ++id)
{
if ( LLAvatarActions::isFriend(*id) )
if ( *id == gAgentID || LLAvatarActions::isFriend(*id) )
{
result = false;
break;