fixed EXT-4893 “'Add friend' available for friends in group/conference sessions”,
corrected condition for enable 'add friend' menu item; --HG-- branch : product-enginemeow-7.2.2
parent
353be3c934
commit
78200e2c1c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue